use Friendica\Core;
-require_once 'boot.php';
-require_once 'include/dba.php';
-
/**
* @brief Sets maintenance mode for this node
*
protected function doExecute()
{
- $a = get_app();
+ $a = \Friendica\BaseObject::getApp();
if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__);
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
}
- if ($a->isInstallMode()) {
+ if ($a->getMode()->isInstall()) {
throw new \RuntimeException('Database isn\'t ready or populated yet');
}
- Core\Config::load();
-
- $lang = Core\L10n::getBrowserLanguage();
- Core\L10n::loadTranslationTable($lang);
-
$enabled = intval($this->getArgument(0));
Core\Config::set('system', 'maintenance', $enabled);