summaryrefslogtreecommitdiffstats
path: root/admin/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/index.php')
-rwxr-xr-xadmin/index.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/admin/index.php b/admin/index.php
index b16ed04..153c2ad 100755
--- a/admin/index.php
+++ b/admin/index.php
@@ -3,13 +3,7 @@
require_once __DIR__ . '/../app/app.php';
require_once __DIR__ . '/inc/auth.inc.php';
-//Load configuration
-$config_file = __DIR__ . '/../custom/config.yml';
-
-if (is_file($config_file)) {
- $conf = Spyc::YAMLLoad($config_file);
- $PlanetConfig = new PlanetConfig($conf);
-} else {
+if (!$PlanetConfig::isInstalled()) {
die('<p>' . _g('You might want to <a href="../install.php">install moonmoon</a>.') . '</p>');
}