From d5a13b1e4c0f35445aa539ff6b3779062907a9cb Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 22 Sep 2010 18:00:19 -0700 Subject: localisation path for all view templates --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index c4de99fb6..dca251538 100644 --- a/index.php +++ b/index.php @@ -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"; -- cgit v1.2.3