From 8811ca9e9efc8e177a49702066402fae819bdf5b Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sat, 5 Nov 2016 03:31:50 -0700 Subject: provide /locs link on settings page if there is more than one hubloc for this channnel *that isn't deleted*. --- Zotlabs/Module/Locs.php | 2 +- Zotlabs/Module/Ping.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Locs.php b/Zotlabs/Module/Locs.php index 4b1e3ffe2..47ece8041 100644 --- a/Zotlabs/Module/Locs.php +++ b/Zotlabs/Module/Locs.php @@ -80,7 +80,7 @@ class Locs extends \Zotlabs\Web\Controller { - function get() { + function get() { if(! local_channel()) { diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php index c385201ce..bf2fa5cc9 100644 --- a/Zotlabs/Module/Ping.php +++ b/Zotlabs/Module/Ping.php @@ -324,10 +324,6 @@ class Ping extends \Zotlabs\Web\Controller { if($r) { foreach($r as $rr) { - if($rr['adjust']) - $md = datetime_convert('UTC', date_default_timezone_get(), $rr['dtstart'], 'Y/m'); - else - $md = datetime_convert('UTC', 'UTC', $rr['dtstart'], 'Y/m'); $strt = datetime_convert('UTC', (($rr['adjust']) ? date_default_timezone_get() : 'UTC'), $rr['dtstart']); $today = ((substr($strt, 0, 10) === datetime_convert('UTC', date_default_timezone_get(), 'now', 'Y-m-d')) ? true : false); -- cgit v1.2.3