aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-27 18:39:52 -0700
committerfriendica <info@friendica.com>2012-03-27 18:39:52 -0700
commit7ee07daf04e516900fb1d9c77debf7f2b7f91fc8 (patch)
tree8148f33b95e240562b02894de52a5672cc026434 /index.php
parent47eaa97af6bf2445553a29fd6a4e1a37e4b741f0 (diff)
downloadvolse-hubzilla-7ee07daf04e516900fb1d9c77debf7f2b7f91fc8.tar.gz
volse-hubzilla-7ee07daf04e516900fb1d9c77debf7f2b7f91fc8.tar.bz2
volse-hubzilla-7ee07daf04e516900fb1d9c77debf7f2b7f91fc8.zip
use theme directory for page templates, not language directory
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 5f6d74adb..0916ed8b1 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;