mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-18 12:16:24 +01:00
Feature/ots player rewrite (#348)
* [WIP] Rewrite OTS_Player class * Fix exception on load a non existing player * Fix for servers that don't have the cap & conditions columns * Fix created column on player save * Update OTS_Player.php * Add Monk Sample + fixes * Move FAQ creation to import_base_data + cleanup
This commit is contained in:
@@ -3,6 +3,7 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
use MyAAC\Models\Changelog;
|
||||
use MyAAC\Models\Config;
|
||||
use MyAAC\Models\FAQ;
|
||||
use MyAAC\Models\ForumBoard;
|
||||
use MyAAC\Models\Gallery;
|
||||
use MyAAC\Models\NewsCategory;
|
||||
@@ -66,4 +67,11 @@ if (Gallery::count() === 0) {
|
||||
]);
|
||||
}
|
||||
|
||||
if(FAQ::count() == 0) {
|
||||
FAQ::create([
|
||||
'question' => 'What is this?',
|
||||
'answer' => 'This is website for OTS powered by MyAAC.',
|
||||
]);
|
||||
}
|
||||
|
||||
success($locale['step_database_success_import_data']);
|
||||
|
||||
Reference in New Issue
Block a user