Browse Source

fix inclusion from templates in content folder

master
Dom SP 3 years ago
parent
commit
7727ee3eb0
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      app/modules/filesinfolders.php

+ 1
- 2
app/modules/filesinfolders.php View File

); );
} }
foreach($this->structs[$domain_key]['tpl'] as $key=>$file) { foreach($this->structs[$domain_key]['tpl'] as $key=>$file) {
$str = file_get_contents($file);
$str = \Template::instance()->render($file);
$str = \Template::instance()->render(substr($file,7));
$str = self::linkify($str); $str = self::linkify($str);
$this->content[$domain][$key."00tpl"] = sprintf( $this->content[$domain][$key."00tpl"] = sprintf(
"<div class=\"item %s %s\">%s</div>", "<div class=\"item %s %s\">%s</div>",

Loading…
Cancel
Save