OSDN Git Service

FIXED: When inclusion tried to do the special skin type by skin of error types, ...
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 22 Mar 2009 16:39:10 +0000 (16:39 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 22 Mar 2009 16:39:10 +0000 (16:39 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk/utf8@992 1ca29b6e-896d-4ea0-84a5-967f57386b96

nucleus/libs/BaseActions.php
nucleus/libs/globalfunctions.php

index efa8bb7..9609c9d 100644 (file)
@@ -77,15 +77,6 @@ class BaseActions {
                // check current level
                if ($this->level > 3) return;   // max. depth reached (avoid endless loop)
                global $skinid;
                // check current level
                if ($this->level > 3) return;   // max. depth reached (avoid endless loop)
                global $skinid;
-               if (!$skinid) {
-                       global $manager, $blogid;
-                       if (!$blogid) {
-                               global $CONF;
-                               $blogid = $CONF['DefaultBlog'];
-                       }
-                       $blog   = &$manager->getBlog($blogid);
-                       $skinid =  $blog->getDefaultSkin();
-               }
                $skin = new SKIN($skinid);
                $file = $this->getIncludeFileName($filename);
                if (!$skin->isValid && !file_exists($file)) {
                $skin = new SKIN($skinid);
                $file = $this->getIncludeFileName($filename);
                if (!$skin->isValid && !file_exists($file)) {
index b5b45b5..d35eb58 100755 (executable)
@@ -1073,6 +1073,7 @@ function doError($msg, $skin = '') {
 \r
        }\r
 \r
 \r
        }\r
 \r
+       $skinid = $skin->id;\r
        $errormessage = $msg;\r
        $skin->parse('error');\r
        exit;\r
        $errormessage = $msg;\r
        $skin->parse('error');\r
        exit;\r