mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 19:59:21 +02:00
small fixes
This commit is contained in:
parent
60f64e21d8
commit
35928fe576
@ -64,7 +64,6 @@ if(isset($_GET['archive']))
|
|||||||
'icon' => $categories[$news['category']]['icon_id'],
|
'icon' => $categories[$news['category']]['icon_id'],
|
||||||
'author' => $config['news_author'] ? $author : '',
|
'author' => $config['news_author'] ? $author : '',
|
||||||
'comments' => $news['comments'] != 0 ? getForumThreadLink($news['comments']) : null,
|
'comments' => $news['comments'] != 0 ? getForumThreadLink($news['comments']) : null,
|
||||||
'news_date_format' => $config['news_date_format']
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -214,7 +213,6 @@ if(!$news_cached)
|
|||||||
'icon' => $categories[$news['category']]['icon_id'],
|
'icon' => $categories[$news['category']]['icon_id'],
|
||||||
'author' => $config['news_author'] ? $author : '',
|
'author' => $config['news_author'] ? $author : '',
|
||||||
'comments' => $news['comments'] != 0 ? getForumThreadLink($news['comments']) : null,
|
'comments' => $news['comments'] != 0 ? getForumThreadLink($news['comments']) : null,
|
||||||
'news_date_format' => $config['news_date_format'],
|
|
||||||
'hidden'=> $news['hidden']
|
'hidden'=> $news['hidden']
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,8 @@ if($config['account_country'])
|
|||||||
$promotion = '';
|
$promotion = '';
|
||||||
if($db->hasColumn('players', 'promotion'))
|
if($db->hasColumn('players', 'promotion'))
|
||||||
$promotion = '`promotion`,';
|
$promotion = '`promotion`,';
|
||||||
$order = isset($_GET['order']) ? $_GET['order'] : 'name';
|
|
||||||
|
$order = $_GET['order'] ?? 'name';
|
||||||
if(!in_array($order, array('country', 'name', 'level', 'vocation')))
|
if(!in_array($order, array('country', 'name', 'level', 'vocation')))
|
||||||
$order = $db->fieldName('name');
|
$order = $db->fieldName('name');
|
||||||
else if($order == 'country')
|
else if($order == 'country')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user