localisation path for all view templates
This commit is contained in:
parent
124129e2a0
commit
d5a13b1e4c
28 changed files with 113 additions and 100 deletions
|
@ -102,10 +102,11 @@ $a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array(
|
|||
|
||||
$page = $a->page;
|
||||
$profile = $a->profile;
|
||||
$lang = get_config('system','language');
|
||||
|
||||
header("Content-type: text/html; charset=utf-8");
|
||||
|
||||
$template = "view/"
|
||||
$template = "view/" . (($lang) ? $lang . "/" : "")
|
||||
. ((x($a->page,'template')) ? $a->page['template'] : 'default' )
|
||||
. ".php";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue