From: Platonides Date: Wed, 9 Jan 2013 13:30:30 +0000 (+0100) Subject: Supress the root namespacing from DBQueryError. X-Git-Tag: 1.31.0-rc.0~21087^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_user_edit%27%2C%20iduser=user.userid%29%20%7D%7D?a=commitdiff_plain;h=8983c3393f6b0479e4bb8537262cd12f952e75e5;p=lhc%2Fweb%2Fwiklou.git Supress the root namespacing from DBQueryError. Makes check-vars happy. Change-Id: Iaaa4cad5b54a20b2f8ed93dd14eaf12e3c9ebd03 --- diff --git a/includes/db/ORMTable.php b/includes/db/ORMTable.php index 7ae10ea13e..40793158af 100644 --- a/includes/db/ORMTable.php +++ b/includes/db/ORMTable.php @@ -163,7 +163,7 @@ abstract class ORMTable extends DBAccessBase implements IORMTable { if ( $result === false ) { // Database connection was in "ignoreErrors" mode. We don't like that. // So, we emulate the DBQueryError that should have been thrown. - $error = new \DBQueryError( + $error = new DBQueryError( $dbr, $dbr->lastError(), $dbr->lastErrno(),