Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -436,13 +436,13 @@ |
437 | 437 | } catch ( Exception $e ) { |
438 | 438 | // echo $e->getMessage(); |
439 | 439 | } |
440 | | - |
| 440 | + |
441 | 441 | // Note: The WebRequest Class calls are made in this block because |
442 | 442 | // since PHP 5.1.x, all objects have their destructors called |
443 | 443 | // before the output buffer callback function executes. |
444 | 444 | // Thus, globalized objects will not be available as expected in the function. |
445 | 445 | // This is stated to be intended behavior, as per the following: [http://bugs.php.net/bug.php?id=40104] |
446 | | - |
| 446 | + |
447 | 447 | $xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ? $_SERVER['HTTP_X_DEVICE'] : ''; |
448 | 448 | self::$useFormat = $wgRequest->getText( 'useformat' ); |
449 | 449 | $mobileAction = $wgRequest->getText( 'mobileaction' ); |
— | — | @@ -1031,9 +1031,7 @@ |
1032 | 1032 | wfProfileIn( __METHOD__ ); |
1033 | 1033 | $itemToRemoveRecords = array(); |
1034 | 1034 | |
1035 | | - foreach ( array_merge( $this->itemsToRemove, $wgMFRemovableClasses ) |
1036 | | - as $itemToRemove ) |
1037 | | - { |
| 1035 | + foreach ( array_merge( $this->itemsToRemove, $wgMFRemovableClasses ) as $itemToRemove ) { |
1038 | 1036 | $type = ''; |
1039 | 1037 | $rawName = ''; |
1040 | 1038 | CssDetection::detectIdCssOrTag( $itemToRemove, $type, $rawName ); |