From 7ee07daf04e516900fb1d9c77debf7f2b7f91fc8 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 27 Mar 2012 18:39:52 -0700 Subject: [PATCH] use theme directory for page templates, not language directory --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5