public static function finishUpgrading() { self::$_upgrademode = false; self::$_installmode = false; self::loadModules(); }