|
@@ 714-718 (lines=5) @@
|
| 711 |
|
$this->template->add_array($data); |
| 712 |
|
} |
| 713 |
|
|
| 714 |
|
if ($this->tpl_folder) { |
| 715 |
|
$file = $this->template->template_dir . $this->tpl_folder . '/' . $file . '.tpl'; |
| 716 |
|
} else { |
| 717 |
|
$file = realpath(__DIR__) . '/templates/public/' . $file . '.tpl'; |
| 718 |
|
} |
| 719 |
|
|
| 720 |
|
return $this->template->fetch('file:' . $file); |
| 721 |
|
} |
|
@@ 724-728 (lines=5) @@
|
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
private function test_tpl($file = '') { |
| 724 |
|
if ($this->tpl_folder) { |
| 725 |
|
$file = $this->template->template_dir . $this->tpl_folder . '/' . $file . '.tpl'; |
| 726 |
|
} else { |
| 727 |
|
$file = realpath(__DIR__) . '/templates/public/' . $file . '.tpl'; |
| 728 |
|
} |
| 729 |
|
|
| 730 |
|
if (file_exists($file)) { |
| 731 |
|
return TRUE; |