Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiSetup.php |
— | — | @@ -7,8 +7,7 @@ |
8 | 8 | protected static $apiUrl; |
9 | 9 | |
10 | 10 | function setUp() { |
11 | | - global $wgServer, $wgContLang, $wgAuth, $wgScriptPath, |
12 | | - $wgScriptExtension, $wgMemc, $wgRequest; |
| 11 | + global $wgServer, $wgContLang, $wgAuth, $wgMemc, $wgRequest; |
13 | 12 | |
14 | 13 | self::$apiUrl = $wgServer . wfScript( 'api' ); |
15 | 14 | |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -853,7 +853,7 @@ |
854 | 854 | $wgOut->setETag( $parserCache->getETag( $this, $parserOptions ) ); |
855 | 855 | } |
856 | 856 | |
857 | | - # Is is client cached? |
| 857 | + # Is it client cached? |
858 | 858 | if ( $wgOut->checkLastModified( $this->getTouched() ) ) { |
859 | 859 | wfDebug( __METHOD__ . ": done 304\n" ); |
860 | 860 | wfProfileOut( __METHOD__ ); |
Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -546,6 +546,8 @@ |
547 | 547 | } |
548 | 548 | |
549 | 549 | $lang = wfGetLangObj( $langcode ); |
| 550 | + if (!$lang) throw new MWException( "Bad lang code $langcode given" ); |
| 551 | + |
550 | 552 | $langcode = $lang->getCode(); |
551 | 553 | |
552 | 554 | $message = false; |
Index: trunk/phase3/includes/ResourceLoader.php |
— | — | @@ -327,8 +327,6 @@ |
328 | 328 | } |
329 | 329 | |
330 | 330 | public static function makeModuleResponse( ResourceLoaderContext $context, array $modules, $missing = null ) { |
331 | | - global $wgUser; |
332 | | - |
333 | 331 | // Pre-fetch blobs |
334 | 332 | $blobs = $context->shouldIncludeMessages() ? |
335 | 333 | MessageBlobStore::get( array_keys( $modules ), $context->getLanguage() ) : array(); |