Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | } |
86 | 86 | |
87 | 87 | class ExtMobileFrontend { |
88 | | - const VERSION = '0.5.69'; |
| 88 | + const VERSION = '0.5.70'; |
89 | 89 | |
90 | 90 | /** |
91 | 91 | * @var DOMDocument |
— | — | @@ -201,7 +201,11 @@ |
202 | 202 | |
203 | 203 | public function testCanonicalRedirect( $request, $title, $output ) { |
204 | 204 | $xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ? $_SERVER['HTTP_X_DEVICE'] : ''; |
205 | | - return ( empty( $xDevice ) ); |
| 205 | + if ( empty( $xDevice ) ) { |
| 206 | + return true; // Let the redirect happen |
| 207 | + } else { |
| 208 | + return false; // Prevent the redirect for occuring |
| 209 | + } |
206 | 210 | } |
207 | 211 | |
208 | 212 | public function addMobileFooter( &$obj, &$tpl ) { |