-(bug 24484) Add prop=pageprops module
[lhc/web/wiklou.git] / includes / api / ApiQueryCategoryInfo.php
index c599fb2..09306b4 100644 (file)
@@ -19,7 +19,7 @@
  *
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
  */
 
@@ -74,7 +74,6 @@ class ApiQueryCategoryInfo extends ApiQueryBase {
                }
                $this->addOption( 'ORDER BY', 'cat_title' );
 
-               $db = $this->getDB();
                $res = $this->select( __METHOD__ );
 
                $catids = array_flip( $cattitles );
@@ -95,6 +94,10 @@ class ApiQueryCategoryInfo extends ApiQueryBase {
                }
        }
 
+       public function getCacheMode( $params ) {
+               return 'public';
+       }
+
        public function getAllowedParams() {
                return array(
                        'continue' => null,
@@ -118,4 +121,4 @@ class ApiQueryCategoryInfo extends ApiQueryBase {
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
-}
\ No newline at end of file
+}