1
1
Fork 0

use theme directory for page templates, not language directory

This commit is contained in:
friendica 2012-03-27 18:39:52 -07:00
parent 47eaa97af6
commit 7ee07daf04

View file

@ -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;