Merge pull request #7161 from nupplaphil/task/mod_toggle_mobile
Move mod/toggle_mobile to src/Module/ToggleMobile
This commit is contained in:
commit
33ec3d8051
3 changed files with 31 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
<?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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue