[aur-dev] [PATCH] Fix DB.class.php to match config

Mark Weiman mark.weiman at markzz.com
Wed Nov 9 03:23:22 UTC 2016


In commit baf8a220, conf/config.proto was changed so that dsn_prefix
was changed to backend and this fixes this in web/lib/DB.class.php.

Signed-off-by: Mark Weiman <mark.weiman at markzz.com>
---
 web/lib/DB.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/lib/DB.class.php b/web/lib/DB.class.php
index b538e0d..f6fd7ad 100644
--- a/web/lib/DB.class.php
+++ b/web/lib/DB.class.php
@@ -17,14 +17,14 @@ class DB {
 	public static function connect() {
 		if (self::$dbh === null) {
 			try {
-				$dsn_prefix = config_get('database', 'dsn_prefix');
+				$backend = config_get('database', 'backend');
 				$host = config_get('database', 'host');
 				$socket = config_get('database', 'socket');
 				$name = config_get('database', 'name');
 				$user = config_get('database', 'user');
 				$password = config_get('database', 'password');
 
-				$dsn = $dsn_prefix .
+				$dsn = $backend .
 				       ':host=' . $host .
 				       ';unix_socket=' . $socket .
 				       ';dbname=' . $name;
-- 
2.10.2


More information about the aur-dev mailing list