Fixed mobilde device issue

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2019-12-01 16:22:04 +01:00
parent 8aa2f52308
commit 6b087cf5fd
3 changed files with 8 additions and 9 deletions

View File

@ -94,16 +94,14 @@ class Controller {
$file = DIR_THEME . THEME . '/templates/' . $this->template;
}
if(MOBILE_DEVICE == 1) { $file = DIR_THEME . 'mobile' . '/templates/' . $this->template; }
if(file_exists($file)){
extract($this->data);
ob_start();
include($file);
$content = ob_get_contents();
ob_end_clean();
@ -117,5 +115,3 @@ class Controller {
}
?>