[frio] Remove unused code in frio_init()

This commit is contained in:
Hypolite Petovan 2019-01-19 21:54:10 -05:00
parent 6aa0899d67
commit 765784aad3
1 changed files with 3 additions and 16 deletions

View File

@ -22,26 +22,17 @@ use Friendica\Model;
use Friendica\Module; use Friendica\Module;
use Friendica\Util\Strings; use Friendica\Util\Strings;
$frio = 'view/theme/frio';
global $frio;
function frio_init(App $a) function frio_init(App $a)
{ {
global $frio;
$frio = 'view/theme/frio';
// disable the events module link in the profile tab // disable the events module link in the profile tab
$a->theme_events_in_profile = false; $a->theme_events_in_profile = false;
$a->videowidth = 622; $a->videowidth = 622;
Renderer::setActiveTemplateEngine('smarty3'); 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 // if the device is a mobile device set js is_mobile
// variable so the js scripts can use this information // variable so the js scripts can use this information
if ($a->is_mobile || $a->is_tablet) { if ($a->is_mobile || $a->is_tablet) {
@ -51,10 +42,6 @@ function frio_init(App $a)
</script> </script>
EOT; EOT;
} }
if ($style == '') {
$style = Config::get('frio', 'style');
}
} }
function frio_install() function frio_install()