From 765784aad3e21d0cf24aa92273fe35b27d29cc26 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 19 Jan 2019 21:54:10 -0500 Subject: [PATCH] [frio] Remove unused code in frio_init() --- view/theme/frio/theme.php | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/view/theme/frio/theme.php b/view/theme/frio/theme.php index 9019a26205..9bae9053af 100644 --- a/view/theme/frio/theme.php +++ b/view/theme/frio/theme.php @@ -22,26 +22,17 @@ use Friendica\Model; use Friendica\Module; use Friendica\Util\Strings; -$frio = 'view/theme/frio'; - -global $frio; - function frio_init(App $a) { + global $frio; + $frio = 'view/theme/frio'; + // disable the events module link in the profile tab $a->theme_events_in_profile = false; $a->videowidth = 622; Renderer::setActiveTemplateEngine('smarty3'); - $baseurl = System::baseUrl(); - - $style = PConfig::get(local_user(), 'frio', 'style'); - - $frio = 'view/theme/frio'; - - global $frio; - // if the device is a mobile device set js is_mobile // variable so the js scripts can use this information if ($a->is_mobile || $a->is_tablet) { @@ -51,10 +42,6 @@ function frio_init(App $a) EOT; } - - if ($style == '') { - $style = Config::get('frio', 'style'); - } } function frio_install()