OSDN Git Service

FIX: call of special skin parts using fancy url scheme like special/specialname was...
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 13 Mar 2011 03:42:16 +0000 (03:42 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 13 Mar 2011 03:42:16 +0000 (03:42 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1151 1ca29b6e-896d-4ea0-84a5-967f57386b96

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

index c0dbf7d..dd89f74 100644 (file)
@@ -76,22 +76,15 @@ class BaseActions {
        function parse_parsedinclude($filename) {
                // check current level
                if ($this->level > 3) return;   // max. depth reached (avoid endless loop)
-               global $skinid;
-               $skin = new SKIN($skinid);
                $file = $this->getIncludeFileName($filename);
-               if (!$skin->isValid && !file_exists($file)) {
-                       return;
-               }
-               $contents = $skin->getContent($filename);
-               if (!$contents) {
-            if (!file_exists($file)) return;
-            $contents = file_get_contents($file);
-            if (empty($contents)) return;
-               }
+               if (!file_exists($file)) return;
+               $contents = file_get_contents($file);
+               if (empty($contents)) return;
+               
                $this->level = $this->level + 1;
                // parse file contents
                $this->parser->parse($contents);
-
+               
                $this->level = $this->level - 1;
        }
 
index 3a48f61..a8a7804 100755 (executable)
@@ -565,6 +565,7 @@ if ($CONF['URLMode'] == 'pathinfo') {
 \r
                                        if ($i < sizeof($data) ) {\r
                                                $special = $data[$i];\r
+                                               $_REQUEST['special'] = $special;\r
                                        }\r
                                        break;\r
 \r