Reviewed some settings again, fixing many glitches

This commit is contained in:
slawkens
2023-08-24 17:20:32 +02:00
parent 3ef53aff6c
commit 0746708743
56 changed files with 181 additions and 170 deletions

View File

@@ -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
)));
}

View File

@@ -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.');