database_dsn is a constant now

This commit is contained in:
Shish 2012-02-02 03:53:03 +00:00
parent 2a375e7129
commit 699087cd98

View File

@ -131,10 +131,8 @@ class AdminPage extends SimpleExtension {
}
private function dbdump($page) {
include "config.php";
$matches = array();
preg_match("#(\w+)://(\w+):(\w+)@([\w\.\-]+)/([\w_]+)(\?.*)?#", $database_dsn, $matches);
preg_match("#(\w+)://(\w+):(\w+)@([\w\.\-]+)/([\w_]+)(\?.*)?#", DATABASE_DSN, $matches);
$software = $matches[1];
$username = $matches[2];
$password = $matches[3];