mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
Reviewed some settings again, fixing many glitches
This commit is contained in:
@@ -85,9 +85,9 @@ if(isset($_GET['title'], $_GET['body'], $_GET['player_id'], $_GET['category'], $
|
||||
'content' => $_GET['body'],
|
||||
'date' => time(),
|
||||
'icon' => $categories[$_GET['category']]['icon_id'],
|
||||
'author' => $config['news_author'] ? $author : '',
|
||||
'author' => setting('core.news_author') ? $author : '',
|
||||
'comments' => null,
|
||||
'news_date_format' => $config['news_date_format'],
|
||||
'news_date_format' => setting('core.news_date_format'),
|
||||
'hidden'=> 0
|
||||
)));
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ else if(isset($_GET['email']))
|
||||
if(!Validator::email($email))
|
||||
error_(Validator::getLastError());
|
||||
|
||||
if($config['account_mail_unique'])
|
||||
if(setting('core.account_mail_unique'))
|
||||
{
|
||||
if(Account::where('email', '=', $email)->exists())
|
||||
error_('Account with this e-mail already exist.');
|
||||
|
Reference in New Issue
Block a user