* BaseActions::parse_parsedinclude()
* parsed include
*
- * @param string $filename filename to be included
+ * @param string $name filename to be included
* @return void
*/
- public function parse_parsedinclude($filename)
+ public function parse_parsedinclude($name)
{
// check current level
if ( $this->level > 3 )
return;
}
- $file = $this->getIncludeFileName($filename);
-
- if ( !file_exists($file) )
+ $file = $this->getIncludeFileName($name);
+ if ( !file_exists($file) && $this->parser->skin != NULL)
{
- return;
+ $contents = $this->parser->skin->getContentFromDB($name);
+ }
+ else
+ {
+ $contents = file_get_contents($file);
}
-
- $contents = file_get_contents($file);
if ( empty($contents) )
{
{
if ( !defined($constant) )
{
- echo Entity::hsc($constant);
+ echo $constant;
}
else
{
- echo Entity::hsc(constant($constant));
+ echo constant($constant);
}
return;
}