LE_TPL - refact

This commit is contained in:
Pavel Belyaev
2021-06-06 01:32:41 +05:00
parent 2b37e54dbb
commit ecb80f35b4

View File

@@ -38,9 +38,6 @@ class LE_TPL {
$path_app = realpath((APPDIR."TPL".DS.$path)); $path_app = realpath((APPDIR."TPL".DS.$path));
$path_sys = realpath((SYSDIR."TPL".DS.$path)); $path_sys = realpath((SYSDIR."TPL".DS.$path));
//echo APPDIR.$path.BR;
//echo SYSDIR.$path.BR;
if (is_file($path_app)) return $path_app; if (is_file($path_app)) return $path_app;
if (is_file($path_sys)) return $path_sys; if (is_file($path_sys)) return $path_sys;
@@ -49,8 +46,6 @@ class LE_TPL {
public function display($prefix=false,$main_tpl="main") public function display($prefix=false,$main_tpl="main")
{ {
//global $config,$db;
$tpl = &$this; $tpl = &$this;
if ($this->debug) echo_arr($this->load_tpls); if ($this->debug) echo_arr($this->load_tpls);