fix a problem by not inserting __MWTEMPLATESECTION for section titles that don't...
[lhc/web/wiklou.git] / includes / CategoryPage.php
index 3e630ce..5070c1b 100644 (file)
@@ -1,15 +1,17 @@
 <?php
-
-/*
-       Special handling for category description pages
-       Modelled after ImagePage.php
-*/
-
+/**
+ * Special handling for category description pages
+ * Modelled after ImagePage.php
+ *
+ * @package MediaWiki
+ */
+
+/**
+ * @package MediaWiki 
+ */
 class CategoryPage extends Article {
 
-
        function view() {
-
                if ( NS_CATEGORY == $this->mTitle->getNamespace() ) {
                        $this->openShowCategory();
                }
@@ -25,8 +27,7 @@ class CategoryPage extends Article {
                }
        }
 
-       function openShowCategory()
-       {
+       function openShowCategory() {
                # For overloading
        }
        
@@ -36,8 +37,7 @@ class CategoryPage extends Article {
         # languages due to sorting issues, so they might want to turn it
         # off.
 
-       function closeShowCategory()
-       {
+       function closeShowCategory() {
                global $wgOut;
                $msg = wfMsg('usenewcategorypage');
                if ( '0' == @$msg[0] )
@@ -191,8 +191,8 @@ class CategoryPage extends Article {
                                                 $index++ )
                                         {
                                                 // check for change of starting letter or begging of chunk
-                                                if ( ($children_start_char[$index] != $children_start_char[$index - 1])
-                                                        || ($index == $startChunk) )
+                                                if ( ($index == $startChunk)
+                                                       || ($children_start_char[$index] != $children_start_char[$index - 1]) )
                                                 {
                                                         $r .= "</ul><h3>{$children_start_char[$index]}</h3>\n<ul>";
                                                 }
@@ -286,13 +286,7 @@ class CategoryPage extends Article {
                         }
                         $r .= '</ul>';
                 }
-
-
                 return $r ;
         }
-
-
 }
-
-
 ?>