mirror of
https://github.com/friendica/friendica
synced 2024-11-18 08:23:53 +00:00
9774c95b80
- Remove unused $overwriteURL parameter in Renderer::replaceMacros
20 lines
300 B
PHP
20 lines
300 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
|
|
function toggle_mobile_init(App $a) {
|
|
|
|
if (isset($_GET['off'])) {
|
|
$_SESSION['show-mobile'] = false;
|
|
} else {
|
|
$_SESSION['show-mobile'] = true;
|
|
}
|
|
|
|
if (isset($_GET['address'])) {
|
|
$address = $_GET['address'];
|
|
} else {
|
|
$address = '';
|
|
}
|
|
|
|
$a->redirect($address);
|
|
}
|