1
1
Fork 0

localisation path for all view templates

This commit is contained in:
Mike Macgirvin 2010-09-22 18:00:19 -07:00
commit d5a13b1e4c
28 changed files with 113 additions and 100 deletions

View file

@ -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";