Reverse-merge r69521 from 1.16wmf4: fix OpenSearch caching
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 19 Jul 2010 08:19:54 +0000 (08:19 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 19 Jul 2010 08:19:54 +0000 (08:19 +0000)
includes/api/ApiMain.php

index 56ff118..10b0745 100644 (file)
@@ -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();
                }