X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=utf8%2Fnucleus%2Flibs%2FADMIN.php;h=b8ef539c3418f71cf148cb8f738ba6d45ac259a5;hb=c77725abf190cf97911d40db1aec86485b2fc51b;hp=91b4ca4d95948b0562501823a32b4bff555c5f3d;hpb=4cc8e9f75ed3646dad16aa14937b5da813c29bb4;p=nucleus-jp%2Fnucleus-jp-ancient.git diff --git a/utf8/nucleus/libs/ADMIN.php b/utf8/nucleus/libs/ADMIN.php index 91b4ca4..b8ef539 100755 --- a/utf8/nucleus/libs/ADMIN.php +++ b/utf8/nucleus/libs/ADMIN.php @@ -2816,8 +2816,6 @@ class ADMIN { $catid = intval($catid); - $manager->notify('PreDeleteCategory', array('catid' => $catid)); - $blogid = getBlogIDFromCatID($catid); if (!$member->blogAdminRights($blogid)) @@ -2842,6 +2840,8 @@ class ADMIN { if (sql_num_rows($res) == 1) return _ERROR_DELETELASTCATEGORY; + $manager->notify('PreDeleteCategory', array('catid' => $catid)); + // change category for all items to the default category $query = 'UPDATE '.sql_table('item')." SET icat=$destcatid WHERE icat=$catid"; sql_query($query); @@ -3326,6 +3326,8 @@ class ADMIN { + + $blog->additem($blog->getDefaultCategory(),_EBLOG_FIRSTITEM_TITLE,_EBLOG_FIRSTITEM_BODY,'',$blogid, $memberid,$blog->getCorrectTime(),0,0,0); @@ -6429,6 +6431,8 @@ selector(); if ($iPrevPid != $aOption['pid']) { $iPrevPid = $aOption['pid']; + + echo ''.sprintf(_PLUGIN_OPTIONS_TITLE, htmlspecialchars($aOption['pfile']. ENT_QUOTES)).''; }