X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=index.php;h=79d4ad58df25010fba89e39331c20c6c8a90e4a3;hb=89018afa13887c46de4c8ef8189fc7b500cdac0f;hp=d8b58407194d8288faece81398b161e96b6d52f9;hpb=57bac1bea99cdac24305c53272a48821e52a7c2e;p=tt-rss.git diff --git a/index.php b/index.php index d8b58407..79d4ad58 100644 --- a/index.php +++ b/index.php @@ -32,16 +32,14 @@ if (!init_plugins()) return; - global $pluginhost; - if (!$_REQUEST['mobile']) { - if ($mobile->isTablet() && $pluginhost->get_plugin("digest")) { + if ($mobile->isTablet() && PluginHost::getInstance()->get_plugin("digest")) { header('Location: backend.php?op=digest'); exit; - } else if ($mobile->isMobile() && $pluginhost->get_plugin("mobile")) { + } else if ($mobile->isMobile() && PluginHost::getInstance()->get_plugin("mobile")) { header('Location: backend.php?op=mobile'); exit; - } else if ($mobile->isMobile() && $pluginhost->get_plugin("digest")) { + } else if ($mobile->isMobile() && PluginHost::getInstance()->get_plugin("digest")) { header('Location: backend.php?op=digest'); exit; } @@ -58,14 +56,19 @@ Tiny Tiny RSS + + - - + @@ -74,7 +77,7 @@