mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Fix formatting in frio_boot.php
This commit is contained in:
parent
964bf3f3cc
commit
3213715b60
1 changed files with 12 additions and 13 deletions
|
@ -14,24 +14,23 @@ use Friendica\App;
|
||||||
*
|
*
|
||||||
* @todo Check if this is really needed.
|
* @todo Check if this is really needed.
|
||||||
*/
|
*/
|
||||||
function load_page(App $a) {
|
function load_page(App $a)
|
||||||
if(isset($_GET["mode"]) && ($_GET["mode"] == "minimal")) {
|
{
|
||||||
require "view/theme/frio/minimal.php";
|
if (isset($_GET['mode']) && ($_GET['mode'] == 'minimal')) {
|
||||||
} elseif((isset($_GET["mode"]) && ($_GET["mode"] == "none"))) {
|
require 'view/theme/frio/minimal.php';
|
||||||
require "view/theme/frio/none.php";
|
} elseif ((isset($_GET['mode']) && ($_GET['mode'] == 'none'))) {
|
||||||
|
require 'view/theme/frio/none.php';
|
||||||
} else {
|
} else {
|
||||||
$template = 'view/theme/' . current_theme() . '/'
|
$template = 'view/theme/' . current_theme() . '/'
|
||||||
. ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php';
|
. ((x($a->page, 'template')) ? $a->page['template'] : 'default' ) . '.php';
|
||||||
if(file_exists($template))
|
if (file_exists($template)) {
|
||||||
require_once($template);
|
require_once $template;
|
||||||
else
|
} else {
|
||||||
require_once(str_replace('theme/' . current_theme() . '/', '', $template));
|
require_once str_replace('theme/' . current_theme() . '/', '', $template);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Check if page is a modal page
|
* @brief Check if page is a modal page
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue