예제 #1
0
 public static function checkInstallMode()
 {
     if (!is_readable(THEBUGGENIE_PATH . 'installed')) {
         self::$_installmode = true;
     } elseif (is_readable(THEBUGGENIE_PATH . 'upgrade')) {
         self::$_installmode = self::$_upgrademode = true;
     } elseif (!B2DB::isInitialized()) {
         throw new Exception("The Bug Genie seems installed, but B2DB isn't configured. This usually indicates an error with the installation. Try removing the file " . THEBUGGENIE_PATH . "installed and try again.");
     }
 }
예제 #2
0
 public static function finishUpgrading()
 {
     self::$_upgrademode = false;
     self::$_installmode = false;
     self::loadModules();
 }