Index: trunk/phase3/includes/api/ApiUndelete.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | $params['timestamps'][$i] = wfTimestamp(TS_MW, $ts); |
69 | 69 | |
70 | 70 | $pa = new PageArchive($titleObj); |
71 | | - $dbw = wfGetDb(DB_MASTER); |
| 71 | + $dbw = wfGetDB(DB_MASTER); |
72 | 72 | $dbw->begin(); |
73 | 73 | $retval = $pa->undelete((isset($params['timestamps']) ? $params['timestamps'] : array()), $params['reason']); |
74 | 74 | if(!is_array($retval)) |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -1623,7 +1623,7 @@ |
1624 | 1624 | |
1625 | 1625 | wfProfileIn( __METHOD__ ); |
1626 | 1626 | |
1627 | | - $dbr = wfGetDb( DB_SLAVE ); |
| 1627 | + $dbr = wfGetDB( DB_SLAVE ); |
1628 | 1628 | |
1629 | 1629 | if ( $this->getNamespace() == NS_IMAGE ) { |
1630 | 1630 | $tables = array ('imagelinks', 'page_restrictions'); |
Index: trunk/extensions/CategoryTests/CategoryTests.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | } |
67 | 67 | $cattitle = Title::makeTitleSafe(NS_CATEGORY, $category); |
68 | 68 | $catkey = $cattitle->getDBkey(); |
69 | | - $db = wfGetDb(DB_SLAVE); |
| 69 | + $db = wfGetDB(DB_SLAVE); |
70 | 70 | $res = $db->select(array('page', 'categorylinks'), 'cl_from', array( |
71 | 71 | 'page_id=cl_from', |
72 | 72 | 'page_namespace' => $ns, |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | $page = $title->getDBkey(); |
91 | 91 | $ns = $title->getNamespace(); |
92 | 92 | } |
93 | | - $db = wfGetDb(DB_SLAVE); |
| 93 | + $db = wfGetDB(DB_SLAVE); |
94 | 94 | $res = $db->select(array('page', 'categorylinks'), 'cl_from', array( |
95 | 95 | 'page_id=cl_from', |
96 | 96 | 'page_namespace' => $ns, |
Index: trunk/extensions/AuthorProtect/AuthorProtect.php |
— | — | @@ -151,7 +151,7 @@ |
152 | 152 | if(!$wgTitle instanceOf Title) |
153 | 153 | return false; //quick hack to prevent the API from messing up. |
154 | 154 | $id = $wgTitle->getArticleId(); |
155 | | - $dbr = wfGetDb(DB_SLAVE); //grab the slave for reading |
| 155 | + $dbr = wfGetDB(DB_SLAVE); //grab the slave for reading |
156 | 156 | $res = $dbr->query( "SELECT `rev_user` FROM `{$wgDBprefix}revision` WHERE rev_page={$id} LIMIT 1", __METHOD__ ); |
157 | 157 | $row = $dbr->fetchRow($res); |
158 | 158 | return $wgUser->getID() == $row['rev_user']; |
Index: trunk/extensions/ChangeAuthor/ChangeAuthor.body.php |
— | — | @@ -210,7 +210,7 @@ |
211 | 211 | // $errMsg: Error message |
212 | 212 | // Returns: HTML. |
213 | 213 | global $wgScript; |
214 | | - $dbr = wfGetDb(DB_SLAVE); |
| 214 | + $dbr = wfGetDB(DB_SLAVE); |
215 | 215 | $res = $dbr->select( |
216 | 216 | 'revision', |
217 | 217 | Revision::selectFields(), |
— | — | @@ -314,7 +314,7 @@ |
315 | 315 | { |
316 | 316 | // Changes revision authors in the database |
317 | 317 | // $authors: array, key=revid value=array(User from, User to) |
318 | | - $dbw = wfGetDb(DB_MASTER); |
| 318 | + $dbw = wfGetDB(DB_MASTER); |
319 | 319 | $dbw->begin(); |
320 | 320 | $editcounts = array(); // Array to keep track of EC mutations; key=userid, value=mutation |
321 | 321 | $log = new LogPage('changeauth'); |
Index: trunk/extensions/MetavidWiki/maintenance/scrape_and_insert.inc.php |
— | — | @@ -444,7 +444,7 @@ |
445 | 445 | $article = new Article( $cspanTitle ); |
446 | 446 | $mRestrictions['edit']['sysop'] = true; |
447 | 447 | $expiry = Block::infinity(); |
448 | | - $dbw = wfGetDb( DB_MASTER ); |
| 448 | + $dbw = wfGetDB( DB_MASTER ); |
449 | 449 | $dbw->begin(); |
450 | 450 | $ok = $article->updateRestrictions( $mRestrictions, wfMsg( 'mv_source_material' ), false, $expiry ); |
451 | 451 | if ( $ok ) { |
Index: trunk/extensions/Translate/Stats.php |
— | — | @@ -176,7 +176,7 @@ |
177 | 177 | |
178 | 178 | protected function getData( FormOptions $opts ) { |
179 | 179 | global $wgLang, $wgTranslateMessageNamespaces; |
180 | | - $dbr = wfGetDb( DB_SLAVE ); |
| 180 | + $dbr = wfGetDB( DB_SLAVE ); |
181 | 181 | |
182 | 182 | $now = time(); |
183 | 183 | $cutoff = $now - ( 3600 * 24 * $opts->getValue( 'days' ) - 1 ); |
Index: trunk/extensions/Wikidata/OmegaWiki/WikiDataAPI.php |
— | — | @@ -928,7 +928,7 @@ |
929 | 929 | |
930 | 930 | function optionAttributeValueExists($objectId, $optionId) { |
931 | 931 | $dc=wdGetDataSetContext(); |
932 | | - $dbr =& wfGetDb(DB_SLAVE); |
| 932 | + $dbr =& wfGetDB(DB_SLAVE); |
933 | 933 | $queryResult = $dbr->query("SELECT value_id FROM {$dc}_option_attribute_values" . |
934 | 934 | ' WHERE object_id = ' . $objectId . |
935 | 935 | ' AND option_id = ' . $optionId . |
— | — | @@ -945,7 +945,7 @@ |
946 | 946 | $dc=wdGetDataSetContext(); |
947 | 947 | $valueId = newObjectId("{$dc}_option_attribute_values"); |
948 | 948 | |
949 | | - $dbr =& wfGetDb(DB_MASTER); |
| 949 | + $dbr =& wfGetDB(DB_MASTER); |
950 | 950 | $sql = "INSERT INTO {$dc}_option_attribute_values(value_id,object_id,option_id,add_transaction_id)" . |
951 | 951 | ' VALUES(' . $valueId . |
952 | 952 | ',' . $objectId . |
Index: trunk/extensions/Invitations/Invitations_obj.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | if (!is_array($wgInvitationTypes[$feature])) |
43 | 43 | return false; |
44 | 44 | |
45 | | - $dbr = wfGetDb( DB_SLAVE ); |
| 45 | + $dbr = wfGetDB( DB_SLAVE ); |
46 | 46 | |
47 | 47 | $epoch = $wgDBtype == 'mysql' ? 'UNIX_TIMESTAMP(inv_timestamp)' : |
48 | 48 | 'EXTRACT(epoch FROM inv_timestamp)'; |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | if ($user === null) |
71 | 71 | $user = $wgUser; |
72 | 72 | |
73 | | - $dbr = wfGetDb( DB_SLAVE ); |
| 73 | + $dbr = wfGetDB( DB_SLAVE ); |
74 | 74 | |
75 | 75 | $res = $dbr->select( 'invitation', array( 'inv_type' ), array( 'inv_invitee' => $user->getId() ) ); |
76 | 76 | |
— | — | @@ -149,7 +149,7 @@ |
150 | 150 | if (!Invitations::checkDelay( $feature, $user, $accountAge )) |
151 | 151 | return false; |
152 | 152 | |
153 | | - $dbr = wfGetDb( DB_SLAVE ); |
| 153 | + $dbr = wfGetDB( DB_SLAVE ); |
154 | 154 | |
155 | 155 | $res = $dbr->select( 'invite_count', |
156 | 156 | array( 'ic_count' ), |
— | — | @@ -210,7 +210,7 @@ |
211 | 211 | $count = Invitations::getRemainingInvites( $feature, $user ); |
212 | 212 | |
213 | 213 | if ($count) { |
214 | | - $dbw = wfGetDb( DB_MASTER ); |
| 214 | + $dbw = wfGetDB( DB_MASTER ); |
215 | 215 | |
216 | 216 | $dbw->replace( 'invite_count', array ('ic_user', 'ic_type'), |
217 | 217 | array( 'ic_user' => $user->getId(), 'ic_type' => $feature, 'ic_count' => $count ), |