From: Siebrand Mazeland Date: Thu, 6 Nov 2008 22:30:55 +0000 (+0000) Subject: Consistent casing for wfGetDB() X-Git-Tag: 1.31.0-rc.0~44417 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=9bc9c1d161b81e94aa3892b937873421976ec5fc;p=lhc%2Fweb%2Fwiklou.git Consistent casing for wfGetDB() --- diff --git a/includes/Title.php b/includes/Title.php index 8feb6b0f76..5c9de3bf64 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1623,7 +1623,7 @@ class Title { wfProfileIn( __METHOD__ ); - $dbr = wfGetDb( DB_SLAVE ); + $dbr = wfGetDB( DB_SLAVE ); if ( $this->getNamespace() == NS_IMAGE ) { $tables = array ('imagelinks', 'page_restrictions'); diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index f54511b5bc..63fbc99932 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -67,7 +67,7 @@ class ApiUndelete extends ApiBase { $params['timestamps'][$i] = wfTimestamp(TS_MW, $ts); $pa = new PageArchive($titleObj); - $dbw = wfGetDb(DB_MASTER); + $dbw = wfGetDB(DB_MASTER); $dbw->begin(); $retval = $pa->undelete((isset($params['timestamps']) ? $params['timestamps'] : array()), $params['reason']); if(!is_array($retval))