]> git.mxchange.org Git - friendica.git/blobdiff - mod/toggle_mobile.php
added more curyl braces + spaces between "if" and brace
[friendica.git] / mod / toggle_mobile.php
index dbf0996bba6766c1b2d0dd5677453f7da97bf9f6..dbf0eb0f132eec123c97c40f96bc66cbb6846698 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 
-if(! function_exists('toggle_mobile_init')) {
 function toggle_mobile_init(&$a) {
 
        if(isset($_GET['off']))
@@ -11,8 +10,8 @@ function toggle_mobile_init(&$a) {
        if(isset($_GET['address']))
                $address = $_GET['address'];
        else
-               $address = $a->get_baseurl();
+               $address = App::get_baseurl();
 
        goaway($address);
 }
-}
+