Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1167,8 +1167,7 @@ |
1168 | 1168 | * @return bool Whereas client accept gzip compression |
1169 | 1169 | */ |
1170 | 1170 | function wfClientAcceptsGzip() { |
1171 | | - global $wgUseGzip; |
1172 | | - if( $wgUseGzip ) { |
| 1171 | + if( isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ) ) { |
1173 | 1172 | # FIXME: we may want to blacklist some broken browsers |
1174 | 1173 | $m = array(); |
1175 | 1174 | if( preg_match( |
Index: trunk/phase3/includes/OutputHandler.php |
— | — | @@ -74,12 +74,9 @@ |
75 | 75 | return $s; |
76 | 76 | } |
77 | 77 | |
78 | | - if( isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ) ) { |
79 | | - $tokens = preg_split( '/[,; ]/', $_SERVER['HTTP_ACCEPT_ENCODING'] ); |
80 | | - if ( in_array( 'gzip', $tokens ) ) { |
81 | | - header( 'Content-Encoding: gzip' ); |
82 | | - $s = gzencode( $s, 6 ); |
83 | | - } |
| 78 | + if( wfClientAcceptsGzip() ) { |
| 79 | + header( 'Content-Encoding: gzip' ); |
| 80 | + $s = gzencode( $s, 6 ); |
84 | 81 | } |
85 | 82 | |
86 | 83 | // Set vary header if it hasn't been set already |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -706,6 +706,8 @@ |
707 | 707 | * (bug 14717) Don't load nonexistent CSS fix files for non-Monobook skins |
708 | 708 | * (bug 18765) Increased consistency of bold-italic markup for unbalanced quotes. |
709 | 709 | Improved representation of six quotes (may break existing markup). |
| 710 | +* (bug 22034) Use wfClientAcceptsGzip() in wfGzipHandler instead of |
| 711 | + reimplementing it. |
710 | 712 | |
711 | 713 | == API changes in 1.16 == |
712 | 714 | |
— | — | @@ -811,13 +813,13 @@ |
812 | 814 | * Add Estonian letters äöõšüž to linktrail (et) |
813 | 815 | * (bug 18776) Native name of Burmese language (my) |
814 | 816 | * (bug 18806) Use correct unicode characters in spelling of native Chuvash |
815 | | - (Чӑвашла) |
| 817 | + (???????) |
816 | 818 | * (bug 18864) Updated autonym for Zhuang language |
817 | 819 | * (bug 18308) Updated date formatting in Occitan (oc) |
818 | | -* (bug 19080) Added ăâîşţșțĂÂÎŞŢȘȚ to Romanion (ro) linktrail |
| 820 | +* (bug 19080) Added aâîst??AÂÎST?? to Romanion (ro) linktrail |
819 | 821 | * (bug 19286) Correct commafying function in Polish (pl) |
820 | 822 | * (bug 19441) Updated date formatting for Lithuanian |
821 | | -* (bug 19630) Added ÄäÇçĞğŇňÖöŞşÜüÝýŽž to Turkmen (tk) linktrail |
| 823 | +* (bug 19630) Added ÄäÇçGgNnÖöSsÜüÝýŽž to Turkmen (tk) linktrail |
822 | 824 | * (bug 19949) New linktrail for Greek (el) |
823 | 825 | * (bug 19809) Korean (North Korea) (ko-kp) (new) |
824 | 826 | * (bug 19968) Fixed "Project talk" namespace name for Maltese (mt) |
— | — | @@ -893,4 +895,4 @@ |
894 | 896 | |
895 | 897 | === IRC help === |
896 | 898 | |
897 | | -There's usually someone online in #mediawiki on irc.freenode.net |
| 899 | +There's usually someone online |
\ No newline at end of file |