Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -345,7 +345,7 @@ |
346 | 346 | private function formatIWLinks( $iw ) { |
347 | 347 | $result = array(); |
348 | 348 | foreach ( $iw as $prefix => $titles ) { |
349 | | - foreach ( $titles as $title ) { |
| 349 | + foreach ( array_keys( $titles ) as $title ) { |
350 | 350 | $entry = array(); |
351 | 351 | $entry['prefix'] = $prefix; |
352 | 352 | |
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -833,7 +833,7 @@ |
834 | 834 | |
835 | 835 | $astriks = str_repeat( '*** ', 10 ); |
836 | 836 | $msg .= "\n\n$astriks Modules $astriks\n\n"; |
837 | | - foreach ( $this->mModules as $moduleName ) { |
| 837 | + foreach ( array_keys( $this->mModules ) as $moduleName ) { |
838 | 838 | $module = new $this->mModules[$moduleName] ( $this, $moduleName ); |
839 | 839 | $msg .= self::makeHelpMsgHeader( $module, 'action' ); |
840 | 840 | $msg2 = $module->makeHelpMsg(); |
— | — | @@ -852,7 +852,7 @@ |
853 | 853 | } |
854 | 854 | |
855 | 855 | $msg .= "\n$astriks Formats $astriks\n\n"; |
856 | | - foreach ( $this->mFormats as $formatName ) { |
| 856 | + foreach ( array_keys( $this->mFormats ) as $formatName ) { |
857 | 857 | $module = $this->createPrinterByName( $formatName ); |
858 | 858 | $msg .= self::makeHelpMsgHeader( $module, 'format' ); |
859 | 859 | $msg2 = $module->makeHelpMsg(); |
Index: trunk/phase3/includes/api/ApiPageSet.php |
— | — | @@ -501,7 +501,7 @@ |
502 | 502 | if ( $processTitles ) { |
503 | 503 | // The remaining titles in $remaining are non-existent pages |
504 | 504 | foreach ( $remaining as $ns => $dbkeys ) { |
505 | | - foreach ( $dbkeys as $dbkey ) { |
| 505 | + foreach ( array_keys( $dbkeys ) as $dbkey ) { |
506 | 506 | $title = Title::makeTitle( $ns, $dbkey ); |
507 | 507 | $this->mAllPages[$ns][$dbkey] = $this->mFakePageId; |
508 | 508 | $this->mMissingTitles[$this->mFakePageId] = $title; |