aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-29 23:57:33 -0800
committerfriendica <info@friendica.com>2014-12-29 23:57:33 -0800
commit9b2c71a5dcdeb7ef7a1b1e09ad906bc750b1d0d6 (patch)
tree3e011882f060906cb3a7f797c873d8025046fcff /mod
parent20356217c57b70a4673ae37f5d6655f38f0eb891 (diff)
parent619733e297708f49646bb220658c90223a8648c6 (diff)
downloadvolse-hubzilla-9b2c71a5dcdeb7ef7a1b1e09ad906bc750b1d0d6.tar.gz
volse-hubzilla-9b2c71a5dcdeb7ef7a1b1e09ad906bc750b1d0d6.tar.bz2
volse-hubzilla-9b2c71a5dcdeb7ef7a1b1e09ad906bc750b1d0d6.zip
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'mod')
-rw-r--r--mod/manage.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/mod/manage.php b/mod/manage.php
index 21327a120..b0de945bf 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -46,15 +46,12 @@ function manage_content(&$a) {
intval(PAGE_REMOVED)
);
- $selected_channel = null;
$account = get_app()->get_account();
if($r && count($r)) {
$channels = $r;
for($x = 0; $x < count($channels); $x ++) {
$channels[$x]['link'] = 'manage/' . intval($channels[$x]['channel_id']);
- if($channels[$x]['channel_id'] == local_user())
- $selected_channel = &$channels[$x]; // Needs to be a reference!
$channels[$x]['default'] = (($channels[$x]['channel_id'] == $account['account_default_channel']) ? "1" : '');
$channels[$x]['default_links'] = '1';
@@ -152,8 +149,8 @@ function manage_content(&$a) {
$o = replace_macros(get_markup_template('channels.tpl'), array(
'$header' => t('Channel Manager'),
'$msg_selected' => t('Current Channel'),
- '$selected' => $selected_channel,
- '$desc' => t('Attach to one of your channels by selecting it.'),
+ '$selected' => local_user(),
+ '$desc' => t('Switch to one of your channels by selecting it.'),
'$msg_default' => t('Default Channel'),
'$msg_make_default' => t('Make Default'),
'$links' => $links,