mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Add Install Mode
- added PHP docBlock to methods - increased code quality
This commit is contained in:
parent
8815d07765
commit
6cb277b0bb
2 changed files with 114 additions and 24 deletions
|
@ -8,6 +8,7 @@ use Friendica\App;
|
|||
use Friendica\Core\Install;
|
||||
|
||||
require_once 'mod/install.php';
|
||||
require_once 'include/dba.php';
|
||||
|
||||
class AutomaticInstallation extends Console
|
||||
{
|
||||
|
@ -76,7 +77,7 @@ HELP;
|
|||
// Install database
|
||||
$this->out("Inserting data into database...\n");
|
||||
|
||||
$checkResults['data'] = Install::loadDatabase();
|
||||
$checkResults['data'] = Install::installDatabaseStructure();
|
||||
|
||||
if ($checkResults['data'] !== '') {
|
||||
throw new \RuntimeException("ERROR: DB Database creation error. Is the DB empty?\n");
|
||||
|
@ -104,7 +105,7 @@ HELP;
|
|||
$checks = [];
|
||||
|
||||
Install::checkFunctions($checks);
|
||||
Install::checkImagik($checks);
|
||||
Install::checkImagick($checks);
|
||||
Install::checkHtConfig($checks);
|
||||
Install::checkSmarty3($checks);
|
||||
Install::checkKeys($checks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue