mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
Use short form array syntax everywhere
- Add short form array syntax to po2php.php generation
This commit is contained in:
parent
77dfbaa0bf
commit
e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions
|
@ -35,7 +35,7 @@ class ForumManager
|
|||
*/
|
||||
public static function getList($uid, $lastitem, $showhidden = true, $showprivate = false)
|
||||
{
|
||||
$forumlist = array();
|
||||
$forumlist = [];
|
||||
|
||||
$order = (($showhidden) ? '' : ' AND NOT `hidden` ');
|
||||
$order .= (($lastitem) ? ' ORDER BY `last-item` DESC ' : ' ORDER BY `name` ASC ');
|
||||
|
@ -59,13 +59,13 @@ class ForumManager
|
|||
}
|
||||
|
||||
while ($contact = dba::fetch($contacts)) {
|
||||
$forumlist[] = array(
|
||||
$forumlist[] = [
|
||||
'url' => $contact['url'],
|
||||
'name' => $contact['name'],
|
||||
'id' => $contact['id'],
|
||||
'micro' => $contact['micro'],
|
||||
'thumb' => $contact['thumb'],
|
||||
);
|
||||
];
|
||||
}
|
||||
dba::close($contacts);
|
||||
|
||||
|
@ -104,7 +104,7 @@ class ForumManager
|
|||
foreach ($contacts as $contact) {
|
||||
$selected = (($cid == $contact['id']) ? ' forum-selected' : '');
|
||||
|
||||
$entry = array(
|
||||
$entry = [
|
||||
'url' => 'network?f=&cid=' . $contact['id'],
|
||||
'external_url' => 'redir/' . $contact['id'],
|
||||
'name' => $contact['name'],
|
||||
|
@ -112,7 +112,7 @@ class ForumManager
|
|||
'selected' => $selected,
|
||||
'micro' => System::removedBaseUrl(proxy_url($contact['micro'], false, PROXY_SIZE_MICRO)),
|
||||
'id' => ++$id,
|
||||
);
|
||||
];
|
||||
$entries[] = $entry;
|
||||
}
|
||||
|
||||
|
@ -120,13 +120,13 @@ class ForumManager
|
|||
|
||||
$o .= replace_macros(
|
||||
$tpl,
|
||||
array(
|
||||
[
|
||||
'$title' => t('Forums'),
|
||||
'$forums' => $entries,
|
||||
'$link_desc' => t('External link to forum'),
|
||||
'$total' => $total,
|
||||
'$visible_forums' => $visible_forums,
|
||||
'$showmore' => t('show more'))
|
||||
'$showmore' => t('show more')]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue