aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Locs.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-03 17:48:00 +0000
committerMario <mario@mariovavti.com>2021-10-03 17:48:00 +0000
commit5c3b89a68b045b7251c0600411fe5e81f41af594 (patch)
tree43afbc632f3a4c2aa684836195bd8f36b6e97cd4 /Zotlabs/Module/Locs.php
parentda923d7749764ca0d6038f72ca48c6960092228c (diff)
downloadvolse-hubzilla-5c3b89a68b045b7251c0600411fe5e81f41af594.tar.gz
volse-hubzilla-5c3b89a68b045b7251c0600411fe5e81f41af594.tar.bz2
volse-hubzilla-5c3b89a68b045b7251c0600411fe5e81f41af594.zip
mod locs: do not show drop icon for local clones and get rid of redundant for loop
Diffstat (limited to 'Zotlabs/Module/Locs.php')
-rw-r--r--Zotlabs/Module/Locs.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/Zotlabs/Module/Locs.php b/Zotlabs/Module/Locs.php
index 59b872982..1ece47231 100644
--- a/Zotlabs/Module/Locs.php
+++ b/Zotlabs/Module/Locs.php
@@ -116,11 +116,6 @@ class Locs extends Controller {
return;
}
- for($x = 0; $x < count($r); $x ++) {
- $r[$x]['primary'] = (intval($r[$x]['hubloc_primary']) ? true : false);
- $r[$x]['deleted'] = (intval($r[$x]['hubloc_deleted']) ? true : false);
- }
-
$o = replace_macros(get_markup_template('locmanage.tpl'), array(
'$header' => t('Manage Channel Locations'),
'$loc' => t('Location'),
@@ -132,7 +127,8 @@ class Locs extends Controller {
'$sync_text' => t('Please wait several minutes between consecutive operations.'),
'$drop_text' => t('When possible, drop a location by logging into that website/hub and removing your channel.'),
'$last_resort' => t('Use this form to drop the location if the hub is no longer operating.'),
- '$hubs' => $r
+ '$hubs' => $r,
+ '$base_url' => z_root()
));
return $o;