mirror of
https://github.com/friendica/friendica
synced 2025-04-23 18:30:11 +00:00
Frio: Improved user defined channel page
This commit is contained in:
parent
0ec7991a20
commit
62386e4c9e
2 changed files with 69 additions and 3 deletions
|
@ -125,9 +125,11 @@ class Channels extends BaseSettings
|
|||
$circles[$circle['id']] = $circle['name'];
|
||||
}
|
||||
|
||||
$blocklistform = [];
|
||||
$id = 0;
|
||||
$channels = [];
|
||||
foreach ($this->channel->selectByUid($uid) as $channel) {
|
||||
$blocklistform[] = [
|
||||
$channels[] = [
|
||||
'id' => ++$id,
|
||||
'label' => ["label[$channel->code]", $this->t('Label'), $channel->label, '', $this->t('Required')],
|
||||
'description' => ["description[$channel->code]", $this->t("Description"), $channel->description],
|
||||
'access_key' => ["access_key[$channel->code]", $this->t("Access Key"), $channel->accessKey],
|
||||
|
@ -166,7 +168,7 @@ class Channels extends BaseSettings
|
|||
'delentry' => $this->t('Delete entry from the channel list'),
|
||||
'confirm_delete' => $this->t('Delete entry from the channel list?'),
|
||||
],
|
||||
'$entries' => $blocklistform,
|
||||
'$entries' => $channels,
|
||||
'$baseurl' => $this->baseUrl,
|
||||
|
||||
'$form_security_token' => self::getFormSecurityToken('settings_channels'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue