Merge "Improve "selfmove" message's wording"
[lhc/web/wiklou.git] / includes / page / CategoryPage.php
index 6d2be51..2d7e8f2 100644 (file)
@@ -54,7 +54,10 @@ class CategoryPage extends Article {
                        return;
                }
 
-               if ( !Hooks::run( 'CategoryPageView', [ &$this ] ) ) {
+               // Avoid PHP 7.1 warning of passing $this by reference
+               $categoryPage = $this;
+
+               if ( !Hooks::run( 'CategoryPageView', [ &$categoryPage ] ) ) {
                        return;
                }
 
@@ -114,4 +117,12 @@ class CategoryPage extends Article {
                $out->addHTML( $viewer->getHTML() );
                $this->addHelpLink( 'Help:Categories' );
        }
+
+       function getCategoryViewerClass() {
+               return $this->mCategoryViewerClass;
+       }
+
+       function setCategoryViewerClass( $class ) {
+               $this->mCategoryViewerClass = $class;
+       }
 }