summaryrefslogtreecommitdiff
path: root/includes/CategoryPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/CategoryPage.php')
-rw-r--r--includes/CategoryPage.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php
index 32e270e8..ba71aa01 100644
--- a/includes/CategoryPage.php
+++ b/includes/CategoryPage.php
@@ -40,7 +40,7 @@ class CategoryPage extends Article {
/**
* Constructor from a page id
- * @param $id Int article ID to load
+ * @param int $id article ID to load
* @return CategoryPage|null
*/
public static function newFromID( $id ) {
@@ -56,7 +56,7 @@ class CategoryPage extends Article {
$diffOnly = $request->getBool( 'diffonly',
$this->getContext()->getUser()->getOption( 'diffonly' ) );
- if ( isset( $diff ) && $diffOnly ) {
+ if ( $diff !== null && $diffOnly ) {
parent::view();
return;
}
@@ -106,7 +106,13 @@ class CategoryPage extends Article {
unset( $reqArray["from"] );
unset( $reqArray["to"] );
- $viewer = new $this->mCategoryViewerClass( $this->getContext()->getTitle(), $this->getContext(), $from, $until, $reqArray );
+ $viewer = new $this->mCategoryViewerClass(
+ $this->getContext()->getTitle(),
+ $this->getContext(),
+ $from,
+ $until,
+ $reqArray
+ );
$this->getContext()->getOutput()->addHTML( $viewer->getHTML() );
}
}