From: Roan Kattouw Date: Mon, 19 Jul 2010 08:19:54 +0000 (+0000) Subject: Reverse-merge r69521 from 1.16wmf4: fix OpenSearch caching X-Git-Tag: 1.31.0-rc.0~36087 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=f0c87dbd008998cab74f2d800a60af26470ab774;p=lhc%2Fweb%2Fwiklou.git Reverse-merge r69521 from 1.16wmf4: fix OpenSearch caching --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 56ff118e2b..10b07455b4 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -332,7 +332,7 @@ class ApiMain extends ApiBase { } // If this wiki is private, don't cache anything ever - if ( in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) ) { + if ( ! in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) ) { $this->setCachePrivate(); }