aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-03 15:52:05 -0800
committerfriendica <info@friendica.com>2013-01-03 15:52:05 -0800
commitf8bd476b882e95b8bdb589ae74645d030ef198fd (patch)
tree421266d618694160c7d8b088e1e78d74807cea70 /mod
parent7df33bb96366714116f8986f4a0a7d22f26729bf (diff)
downloadvolse-hubzilla-f8bd476b882e95b8bdb589ae74645d030ef198fd.tar.gz
volse-hubzilla-f8bd476b882e95b8bdb589ae74645d030ef198fd.tar.bz2
volse-hubzilla-f8bd476b882e95b8bdb589ae74645d030ef198fd.zip
import the toggle_mobile stuff to shut up some warnings
Diffstat (limited to 'mod')
-rw-r--r--mod/profile.php2
-rw-r--r--mod/toggle_mobile.php17
2 files changed, 18 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 1865d69fc..549536931 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -29,7 +29,7 @@ function profile_aside(&$a) {
}
- $x = q("select uid as profile_uid from channel where address = '%s' limit 1",
+ $x = q("select channel_id as profile_uid from channel where channel_address = '%s' limit 1",
dbesc(argv(1))
);
if($x) {
diff --git a/mod/toggle_mobile.php b/mod/toggle_mobile.php
new file mode 100644
index 000000000..00991e44c
--- /dev/null
+++ b/mod/toggle_mobile.php
@@ -0,0 +1,17 @@
+<?php
+
+function toggle_mobile_init(&$a) {
+
+ if(isset($_GET['off']))
+ $_SESSION['show-mobile'] = false;
+ else
+ $_SESSION['show-mobile'] = true;
+
+ if(isset($_GET['address']))
+ $address = $_GET['address'];
+ else
+ $address = $a->get_baseurl();
+
+ goaway($address);
+}
+