Fixing E_NOTICE
[lhc/web/wiklou.git] / includes / SpecialCategories.php
index 38996dc..a653d2a 100644 (file)
@@ -17,6 +17,9 @@ function wfSpecialCategories() {
 }
 
 /**
+ * TODO: Allow sorting by count.  We need to have a unique index to do this
+ * properly.
+ *
  * @addtogroup SpecialPage
  * @addtogroup Pager
  */
@@ -31,16 +34,18 @@ class CategoryPager extends AlphabeticPager {
        }
        
        function getIndexField() {
-               return array( 'abc' => 'cat_title', 'count' => 'cat_pages' );
+#              return array( 'abc' => 'cat_title', 'count' => 'cat_pages' );
+               return 'cat_title';
        }
 
-       protected function getOrderTypeMessages() {
-               return array( 'abc' => 'special-categories-sort-abc',
-                       'count' => 'special-categories-sort-count' );
-       }
+#      protected function getOrderTypeMessages() {
+#              return array( 'abc' => 'special-categories-sort-abc',
+#                      'count' => 'special-categories-sort-count' );
+#      }
 
-       protected function getDefaultDirection() {
-               return array( 'abc' => false, 'count' => true );
+       protected function getDefaultDirections() {
+#              return array( 'abc' => false, 'count' => true );
+               return false;
        }
        
        /* Override getBody to apply LinksBatch on resultset before actually outputting anything. */