OSDN Git Service

Fix benchmark processing.
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / BaseActions.php
index dd89f74..660e3d0 100644 (file)
@@ -75,16 +75,34 @@ class BaseActions {
        // parsed include
        function parse_parsedinclude($filename) {
                // check current level
-               if ($this->level > 3) return;   // max. depth reached (avoid endless loop)
+               if ($this->level > 3)
+               {
+                       return; // max. depth reached (avoid endless loop)
+               }
+               global $skinid;
+               $skin = new SKIN($skinid);
                $file = $this->getIncludeFileName($filename);
-               if (!file_exists($file)) return;
-               $contents = file_get_contents($file);
-               if (empty($contents)) return;
-               
+               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;
+                       }
+               }
                $this->level = $this->level + 1;
                // parse file contents
                $this->parser->parse($contents);
-               
+
                $this->level = $this->level - 1;
        }