<?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();
}
}
}
- function openShowCategory()
- {
+ function openShowCategory() {
# For overloading
}
# 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] )
$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>";
}
}
$r .= '</ul>';
}
-
-
return $r ;
}
-
-
}
-
-
?>