diff options
author | friendica <info@friendica.com> | 2012-03-27 18:39:52 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-27 18:39:52 -0700 |
commit | 7ee07daf04e516900fb1d9c77debf7f2b7f91fc8 (patch) | |
tree | 8148f33b95e240562b02894de52a5672cc026434 /index.php | |
parent | 47eaa97af6bf2445553a29fd6a4e1a37e4b741f0 (diff) | |
download | volse-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-x | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |