OSDN Git Service

FIX:<%pagehead%>、<%pagefoot%>の内容がデータベースに格納されているとプラグインイベントが発生しなかった不具合を修正
authorshizuki <shizuki@kinezumi.net>
Thu, 10 May 2012 00:37:35 +0000 (09:37 +0900)
committershizuki <shizuki@kinezumi.net>
Thu, 10 May 2012 00:37:35 +0000 (09:37 +0900)
nucleus/libs/AdminActions.php

index 9e268fa..47212a7 100644 (file)
@@ -5763,16 +5763,16 @@ class AdminActions extends BaseActions
        {
                global $member, $nucleus, $CONF, $manager;
                
+               $extrahead = Admin::getAdminextrahead();
+               $data = array(
+                       'extrahead'     => &$extrahead,
+                       'action'        =>  Admin::getAdminAction()
+               );
+               $manager->notify('AdminPrePageHead', $data);
+
                $content = $this->parser->skin->getContentFromDB('pagehead');
                if ( !$content )
                {
-                       $extrahead = Admin::getAdminextrahead();
-                       $data = array(
-                               'extrahead'     => &$extrahead,
-                               'action'        =>  Admin::getAdminAction()
-                       );
-                       $manager->notify('AdminPrePageHead', $data);
-                       
                        $baseUrl = Entity::hsc($CONF['SkinsURL']);
                        
                        /*
@@ -5885,14 +5885,14 @@ class AdminActions extends BaseActions
        {
                global $action, $member, $manager;
                
+               $data = array(
+                       'action' => Admin::getAdminAction()
+               );
+               $manager->notify('AdminPrePageFoot', $data);
+
                $content = $this->parser->skin->getContentFromDB('pagefoot');
                if ( !$content )
                {
-                       $data = array(
-                               'action' => Admin::getAdminAction()
-                       );
-                       $manager->notify('AdminPrePageFoot', $data);
-                       
                        if ( $member->isLoggedIn() && ($action != 'showlogin') )
                        {
                                echo '<h2>' . _LOGOUT . "</h2>\n";