diff --git a/base.php b/base.php index 2a47a0be2..9001904aa 100644 --- a/base.php +++ b/base.php @@ -463,7 +463,7 @@ public static function getDb () { try { self::$db = new PDO('sqlite:'. self::getDbFileName ()); } catch (Exception $e) { - header("location: checkconfig.php"); + header("location: checkconfig.php?err=1"); exit(); } } diff --git a/checkconfig.php b/checkconfig.php index 032cb1465..4a036ddd6 100644 --- a/checkconfig.php +++ b/checkconfig.php @@ -11,6 +11,14 @@ require_once ("base.php"); header ("Content-Type:application/xhtml+xml"); + + $err = getURLParam ("err", -1); + $error = NULL; + switch ($err) { + case 1 : + $error = "Database error"; + break; + } ?> @@ -32,6 +40,16 @@