Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -1212,8 +1212,6 @@ |
1213 | 1213 | global $wgScriptExtension; |
1214 | 1214 | global $wgOut; |
1215 | 1215 | |
1216 | | - $json = new Services_JSON(); |
1217 | | - |
1218 | 1216 | if ( !isset( $this->mPODPartners[$partner] ) ) { |
1219 | 1217 | $wgOut->showErrorPage( 'coll-invalid_podpartner_title', 'coll-invalid_podpartner_msg' ); |
1220 | 1218 | return; |
Index: trunk/extensions/LiquidThreads/classes/Threads.php |
— | — | @@ -322,12 +322,12 @@ |
323 | 323 | $roundRowsAffected = 0; |
324 | 324 | |
325 | 325 | // Fix wrong title. |
326 | | - $res = $dbw->update( 'thread', $titleCond, $fixTitleCond, |
| 326 | + $dbw->update( 'thread', $titleCond, $fixTitleCond, |
327 | 327 | __METHOD__, $options ); |
328 | 328 | $roundRowsAffected += $dbw->affectedRows(); |
329 | 329 | |
330 | 330 | // Fix wrong ID |
331 | | - $res = $dbw->update( 'thread', $idCond, $fixIdCond, __METHOD__, $options ); |
| 331 | + $dbw->update( 'thread', $idCond, $fixIdCond, __METHOD__, $options ); |
332 | 332 | $roundRowsAffected += $dbw->affectedRows(); |
333 | 333 | |
334 | 334 | $rowsAffected += $roundRowsAffected; |
Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -1373,7 +1373,6 @@ |
1374 | 1374 | |
1375 | 1375 | function setSortKey( $k = null ) { |
1376 | 1376 | if ( is_null( $k ) ) { |
1377 | | - $dbr = wfGetDB( DB_SLAVE ); |
1378 | 1377 | $k = wfTimestamp( TS_MW ); |
1379 | 1378 | } |
1380 | 1379 | |
Index: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php |
— | — | @@ -173,7 +173,6 @@ |
174 | 174 | } |
175 | 175 | |
176 | 176 | // Thread conditions |
177 | | - $threadConds = array(); |
178 | 177 | $threads = (array)$params['thread']; |
179 | 178 | foreach ( $threads as $thread ) { |
180 | 179 | $root = new Article( Title::newFromText( $thread ) ); |
Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -899,7 +899,6 @@ |
900 | 900 | $htmlOut = Xml::fieldset( wfMsg( "centralnotice-available-templates" ) ); |
901 | 901 | $htmlOut .= Xml::openElement( 'table', array( 'cellpadding' => 9 ) ); |
902 | 902 | |
903 | | - |
904 | 903 | $htmlOut .= Xml::element( 'th', array( 'align' => 'left', 'width' => '5%' ), |
905 | 904 | wfMsg ( "centralnotice-add" ) ); |
906 | 905 | $htmlOut .= Xml::element( 'th', array( 'align' => 'left', 'width' => '5%' ), |
— | — | @@ -1173,7 +1172,7 @@ |
1174 | 1173 | $dbw->begin(); |
1175 | 1174 | $noticeId = $this->getNoticeId( $noticeName ); |
1176 | 1175 | $templateId = $this->getTemplateId( $templateName ); |
1177 | | - $res = $dbw->delete( 'cn_assignments', array ( 'tmp_id' => $templateId, 'not_id' => $noticeId ) ); |
| 1176 | + $dbw->delete( 'cn_assignments', array ( 'tmp_id' => $templateId, 'not_id' => $noticeId ) ); |
1178 | 1177 | $dbw->commit(); |
1179 | 1178 | } |
1180 | 1179 | |
— | — | @@ -1235,7 +1234,7 @@ |
1236 | 1235 | $dbw->begin(); |
1237 | 1236 | $noticeId = $this->getNoticeId( $noticeName ); |
1238 | 1237 | $templateId = $this->getTemplateId( $templateName ); |
1239 | | - $res = $dbw->update( 'cn_assignments', |
| 1238 | + $dbw->update( 'cn_assignments', |
1240 | 1239 | array ( 'tmp_weight' => $weight ), |
1241 | 1240 | array( |
1242 | 1241 | 'tmp_id' => $templateId, |
Index: trunk/extensions/CentralNotice/CentralNotice.db.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | |
13 | 13 | function CentralNoticeDB() { |
14 | 14 | // Register special page |
15 | | - parent::SpecialPage( 'CentralNotice' ); |
| 15 | + SpecialPage::SpecialPage( 'CentralNotice' ); |
16 | 16 | |
17 | 17 | // Internationalization |
18 | 18 | wfLoadExtensionMessages( 'CentralNotice' ); |
Index: trunk/extensions/SpamBlacklist/SpamBlacklist.php |
— | — | @@ -72,7 +72,9 @@ |
73 | 73 | function wfSpamBlacklistFilter( &$title, $text, $section, &$hookErr, $editSummary ) { |
74 | 74 | $spamObj = wfSpamBlacklistObject(); |
75 | 75 | $ret = $spamObj->filter( $title, $text, $section, $editSummary ); |
76 | | - if ( $ret !== false ) EditPage::spamPage( $ret ); |
| 76 | + if ( $ret !== false ){ |
| 77 | + EditPage::spamPage( $ret ); |
| 78 | + } |
77 | 79 | return ( $ret !== false ); |
78 | 80 | } |
79 | 81 | |
— | — | @@ -90,7 +92,9 @@ |
91 | 93 | $spamObj = wfSpamBlacklistObject(); |
92 | 94 | $title = $editPage->mArticle->getTitle(); |
93 | 95 | $ret = $spamObj->filter( $title, $text, '', $editSummary, $editPage ); |
94 | | - if ( $ret !== false ) $editPage->spamPage( $ret ); |
| 96 | + if ( $ret !== false ){ |
| 97 | + $editPage->spamPage( $ret ); |
| 98 | + } |
95 | 99 | // Return convention for hooks is the inverse of $wgFilterCallback |
96 | 100 | return ( $ret === false ); |
97 | 101 | } |
Index: trunk/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -865,8 +865,6 @@ |
866 | 866 | $status->failCount++; |
867 | 867 | } |
868 | 868 | |
869 | | - $invalidCount = count( $list ) - count( $valid ); |
870 | | - $missingCount = 0; |
871 | 869 | $dbcw = self::getCentralDB(); |
872 | 870 | $password = $this->getPassword(); |
873 | 871 | |
— | — | @@ -1574,7 +1572,6 @@ |
1575 | 1573 | $result->free(); |
1576 | 1574 | |
1577 | 1575 | // And while we're in here, look for user blocks :D |
1578 | | - $blocks = array(); |
1579 | 1576 | $result = $db->select( 'ipblocks', |
1580 | 1577 | array( 'ipb_expiry', 'ipb_reason' ), |
1581 | 1578 | array( 'ipb_user' => $data['id'] ), |
Index: trunk/extensions/CentralAuth/SpecialMergeAccount.php |
— | — | @@ -225,10 +225,7 @@ |
226 | 226 | throw new MWException( "Submission error -- invalid input" ); |
227 | 227 | } |
228 | 228 | |
229 | | - $home = false; |
230 | | - $attached = array(); |
231 | | - $unattached = array(); |
232 | | - $ok = $globalUser->storeAndMigrate( $passwords ); |
| 229 | + $globalUser->storeAndMigrate( $passwords ); |
233 | 230 | $this->clearWorkingPasswords(); |
234 | 231 | |
235 | 232 | $this->showCleanupForm(); |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewList.php |
— | — | @@ -145,8 +145,6 @@ |
146 | 146 | } |
147 | 147 | |
148 | 148 | function getQueryInfo() { |
149 | | - $dbr = wfGetDB( DB_SLAVE ); |
150 | | - $abuse_filter = $dbr->tableName( 'abuse_filter' ); |
151 | 149 | return array( |
152 | 150 | 'tables' => array( 'abuse_filter' ), |
153 | 151 | 'fields' => array( |
Index: trunk/extensions/DynamicPageList/DPL.php |
— | — | @@ -1274,7 +1274,7 @@ |
1275 | 1275 | if ( $noMatches <= 0 ) { |
1276 | 1276 | return $text; |
1277 | 1277 | } |
1278 | | - $rText = ''; |
| 1278 | + |
1279 | 1279 | $beginSubst = - 1; |
1280 | 1280 | $endSubst = - 1; |
1281 | 1281 | $posInsertAt = 0; |
Index: trunk/extensions/DynamicPageList/DPLSetup.php |
— | — | @@ -1321,7 +1321,6 @@ |
1322 | 1322 | $heading = ' ', $maxLength = - 1, $page = '?page?', $link = 'default', |
1323 | 1323 | $trim = false |
1324 | 1324 | ) { |
1325 | | - $arg_list = func_get_args(); |
1326 | 1325 | $output = DPLInclude::extractHeadingFromText( |
1327 | 1326 | $parser, $page, '?title?', $text, $heading, '', $sectionHeading, |
1328 | 1327 | true, $maxLength, $link, $trim |
— | — | @@ -1330,7 +1329,6 @@ |
1331 | 1330 | } |
1332 | 1331 | |
1333 | 1332 | public static function dplMatrixParserFunction( &$parser, $name, $yes, $no, $flip, $matrix ) { |
1334 | | - $arg_list = func_get_args(); |
1335 | 1333 | $lines = explode( "\n", $matrix ); |
1336 | 1334 | $m = array(); |
1337 | 1335 | $sources = array(); |
Index: trunk/extensions/DynamicPageList/DPLMain.php |
— | — | @@ -2025,7 +2025,6 @@ |
2026 | 2026 | $sSqlCond_MaxCat = ''; |
2027 | 2027 | $sSqlWhere = ' WHERE 1=1 '; |
2028 | 2028 | $sSqlSelPage = ''; // initial page for selection |
2029 | | - $sSqlSelectPageTouched = ''; |
2030 | 2029 | |
2031 | 2030 | // normally we create a result of normal pages, but when goal=categories is set, we create a list of categories |
2032 | 2031 | // as this conflicts with some options we need to avoid producing incoorect SQl code |