X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FToggleMobile.php;h=016f5affa4ab08ec5ef61c231e0aba245a69cc86;hb=61dcd6292122d767ad6907ee3ed1e56815033f25;hp=9788c0b5db40700021a07aa7c65a84bfb46ac85c;hpb=a758671a1bb942ce1aaf54a59e084deb0dec13c6;p=friendica.git diff --git a/src/Module/ToggleMobile.php b/src/Module/ToggleMobile.php index 9788c0b5db..016f5affa4 100644 --- a/src/Module/ToggleMobile.php +++ b/src/Module/ToggleMobile.php @@ -1,17 +1,37 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\DI; /** * Toggles the mobile view (on/off) */ class ToggleMobile extends BaseModule { - public static function content() + public static function content(array $parameters = []) { - $a = self::getApp(); + $a = DI::app(); if (isset($_GET['off'])) { $_SESSION['show-mobile'] = false;