From 3213715b6001cb01cb158b191c8fad38db715619 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 28 Apr 2018 18:33:52 -0400 Subject: [PATCH] Fix formatting in frio_boot.php --- view/theme/frio/php/frio_boot.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/view/theme/frio/php/frio_boot.php b/view/theme/frio/php/frio_boot.php index 1f816c5b2..243ea5c72 100644 --- a/view/theme/frio/php/frio_boot.php +++ b/view/theme/frio/php/frio_boot.php @@ -14,24 +14,23 @@ use Friendica\App; * * @todo Check if this is really needed. */ -function load_page(App $a) { - if(isset($_GET["mode"]) && ($_GET["mode"] == "minimal")) { - require "view/theme/frio/minimal.php"; - } elseif((isset($_GET["mode"]) && ($_GET["mode"] == "none"))) { - require "view/theme/frio/none.php"; +function load_page(App $a) +{ + if (isset($_GET['mode']) && ($_GET['mode'] == 'minimal')) { + require 'view/theme/frio/minimal.php'; + } elseif ((isset($_GET['mode']) && ($_GET['mode'] == 'none'))) { + require 'view/theme/frio/none.php'; } else { $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('theme/' . current_theme() . '/', '', $template)); + . ((x($a->page, 'template')) ? $a->page['template'] : 'default' ) . '.php'; + if (file_exists($template)) { + require_once $template; + } else { + require_once str_replace('theme/' . current_theme() . '/', '', $template); + } } - - } - /** * @brief Check if page is a modal page *