From: friendica Date: Wed, 28 Mar 2012 01:39:52 +0000 (-0700) Subject: use theme directory for page templates, not language directory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ee07daf04e516900fb1d9c77debf7f2b7f91fc8;p=friendica.git use theme directory for page templates, not language directory --- diff --git a/index.php b/index.php index 5f6d74adb9..0916ed8b10 100755 --- a/index.php +++ b/index.php @@ -342,13 +342,13 @@ $profile = $a->profile; header("Content-type: text/html; charset=utf-8"); -$template = 'view/' . $lang . '/' +$template = 'view/' . current_theme() . '/' . ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php'; if(file_exists($template)) require_once($template); else - require_once(str_replace($lang . '/', '', $template)); + require_once(str_replace(current_theme() . '/', '', $template)); session_write_close(); exit;