mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:40:16 +00:00
path to default.php in theme dir was incorrect
This commit is contained in:
parent
9a8c69b024
commit
4c3b835307
1 changed files with 2 additions and 2 deletions
|
@ -360,13 +360,13 @@ $profile = $a->profile;
|
|||
|
||||
header("Content-type: text/html; charset=utf-8");
|
||||
|
||||
$template = 'view/' . current_theme() . '/'
|
||||
$template = 'view/theme/' . current_theme() . '/'
|
||||
. ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php';
|
||||
|
||||
if(file_exists($template))
|
||||
require_once($template);
|
||||
else
|
||||
require_once(str_replace(current_theme() . '/', '', $template));
|
||||
require_once(str_replace('theme/' . current_theme() . '/', '', $template));
|
||||
|
||||
session_write_close();
|
||||
exit;
|
||||
|
|
Loading…
Reference in a new issue