]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix HTTP return on status when database is down
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 8 Aug 2015 15:50:29 +0000 (17:50 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 8 Aug 2015 15:50:29 +0000 (17:50 +0200)
website/status.php

index a876f999ffc456b820568044df4e1c03bc2a44f7..832f4600c60032c2913fdcd78d8615c5677717f9 100644 (file)
@@ -10,7 +10,7 @@
                exit;
        }
 
-       $oDB =& getDB();
+       $oDB =& DB::connect(CONST_Database_DSN, false);
        if (!$oDB || PEAR::isError($oDB))
        {
                statusError("No database");