Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -2525,7 +2525,7 @@ |
2526 | 2526 | } |
2527 | 2527 | |
2528 | 2528 | function getHTML() { |
2529 | | - global $wgLang, $wgMessageCache, $wgUseFileCache, $wgShowDBErrorBacktrace, $wgContLang; |
| 2529 | + global $wgLang, $wgMessageCache, $wgUseFileCache, $wgShowDBErrorBacktrace; |
2530 | 2530 | |
2531 | 2531 | $sorry = 'Sorry! This site is experiencing technical difficulties.'; |
2532 | 2532 | $again = 'Try waiting a few minutes and reloading.'; |
— | — | @@ -2560,13 +2560,6 @@ |
2561 | 2561 | $cache = $this->fileCachedPage(); |
2562 | 2562 | # Cached version on file system? |
2563 | 2563 | if( $cache !== null ) { |
2564 | | - # Adding support for RTL languages |
2565 | | - if ( $wgContLang !== null ) { |
2566 | | - if ( $wgContLang->isRTL() ) { |
2567 | | - $cache = str_replace( '<html>', '<html style="direction:rtl;">', $cache ); |
2568 | | - } |
2569 | | - } |
2570 | | - |
2571 | 2564 | # Hack: extend the body for error messages |
2572 | 2565 | $cache = str_replace( array('</html>','</body>'), '', $cache ); |
2573 | 2566 | # Add cache notice... |