mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
use theme directory for page templates, not language directory
This commit is contained in:
parent
47eaa97af6
commit
7ee07daf04
1 changed files with 2 additions and 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;
|
||||
|
|
Loading…
Reference in a new issue