Consistent casing for wfGetDB()
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Thu, 6 Nov 2008 22:30:55 +0000 (22:30 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Thu, 6 Nov 2008 22:30:55 +0000 (22:30 +0000)
includes/Title.php
includes/api/ApiUndelete.php

index 8feb6b0..5c9de3b 100644 (file)
@@ -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');
index f54511b..63fbc99 100644 (file)
@@ -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))