mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +00:00
Add a App-Mode with defined constants
- Normal Mode = 0 - Install Mode = 1 - Maintenance Mode = 2 Moved Install-Mode check to class `App` Replaced all maintenance and install checks with $a->mode checks
This commit is contained in:
parent
6973aaefc2
commit
d5b68cd146
5 changed files with 27 additions and 22 deletions
|
@ -17,8 +17,8 @@ use DOMDocument;
|
|||
*/
|
||||
class Install extends BaseObject
|
||||
{
|
||||
public static function setInstallMode($mode = true) {
|
||||
self::getApp()->install_mode = $mode;
|
||||
public static function setInstallMode() {
|
||||
self::getApp()->mode = APP_MODE_INSTALL;
|
||||
}
|
||||
|
||||
public static function check($phpath = 'php')
|
||||
|
@ -328,4 +328,4 @@ class Install extends BaseObject
|
|||
|
||||
return $errors;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue