re r69339 use the actual function: s/hasCache/haveCache/
[lhc/web/wiklou.git] / includes / api / ApiMain.php
index 4e8be4d..56ff118 100644 (file)
@@ -256,7 +256,7 @@ class ApiMain extends ApiBase {
                        header( 'Vary: Cookie' );
                        if ( $wgUseXVO ) {
                                header( $wgOut->getXVO() );
-                               if ( $wgOut->hasCacheVaryCookies() ) {
+                               if ( $wgOut->haveCacheVaryCookies() ) {
                                        $this->setCacheControl( array( 'private' => true ) );
                                }
                        }