use theme directory for page templates, not language directory
This commit is contained in:
parent
47eaa97af6
commit
7ee07daf04
|
@ -342,13 +342,13 @@ $profile = $a->profile;
|
||||||
|
|
||||||
header("Content-type: text/html; charset=utf-8");
|
header("Content-type: text/html; charset=utf-8");
|
||||||
|
|
||||||
$template = 'view/' . $lang . '/'
|
$template = 'view/' . current_theme() . '/'
|
||||||
. ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php';
|
. ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php';
|
||||||
|
|
||||||
if(file_exists($template))
|
if(file_exists($template))
|
||||||
require_once($template);
|
require_once($template);
|
||||||
else
|
else
|
||||||
require_once(str_replace($lang . '/', '', $template));
|
require_once(str_replace(current_theme() . '/', '', $template));
|
||||||
|
|
||||||
session_write_close();
|
session_write_close();
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in a new issue