Pass the user as an argument to 'isValidPassword' hook callbacks; see docs/hooks...
[lhc/web/wiklou.git] / includes / OutputHandler.php
index 9272b19..6b19afd 100644 (file)
@@ -22,7 +22,7 @@ function wfOutputHandler( $s ) {
  * Unlike ob_gzhandler, it works for HEAD requests too.
  */
 function wfGzipHandler( $s ) {
-       if ( $s !== '' && function_exists( 'gzencode' ) && !headers_sent() ) {
+       if ( function_exists( 'gzencode' ) && !headers_sent() ) {
                $tokens = preg_split( '/[,; ]/', $_SERVER['HTTP_ACCEPT_ENCODING'] );
                if ( in_array( 'gzip', $tokens ) ) {
                        header( 'Content-Encoding: gzip' );
@@ -33,7 +33,7 @@ function wfGzipHandler( $s ) {
                        $foundVary = false;
                        foreach ( $headers as $header ) {
                                if ( substr( $header, 0, 5 ) == 'Vary:' ) {
-                                       $foundVary == true;
+                                       $foundVary = true;
                                        break;
                                }
                        }
@@ -61,4 +61,4 @@ function wfDoContentLength( $length ) {
        }
 }
 
-?>
+