X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FCategoryPage.php;h=55fe1562da0d42ab248ea4163cb4882961353e7b;hb=b5d8f3aed16e7d9ab5e7f7a480a274db6e1e9c04;hp=caebcd7dae83d3a0d79ce75f7b2ebd1f8a11945e;hpb=a77c09c03baf8ee1dd7527db4c20c5be2cd2c298;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/CategoryPage.php b/includes/page/CategoryPage.php index caebcd7dae..55fe1562da 100644 --- a/includes/page/CategoryPage.php +++ b/includes/page/CategoryPage.php @@ -29,6 +29,11 @@ class CategoryPage extends Article { # Subclasses can change this to override the viewer class. protected $mCategoryViewerClass = 'CategoryViewer'; + /** + * @var WikiCategoryPage + */ + protected $mPage; + /** * @param Title $title * @return WikiCategoryPage @@ -61,7 +66,7 @@ class CategoryPage extends Article { return; } - if ( !Hooks::run( 'CategoryPageView', array( &$this ) ) ) { + if ( !Hooks::run( 'CategoryPageView', [ &$this ] ) ) { return; } @@ -89,8 +94,8 @@ class CategoryPage extends Article { $reqArray = $request->getValues(); - $from = $until = array(); - foreach ( array( 'page', 'subcat', 'file' ) as $type ) { + $from = $until = []; + foreach ( [ 'page', 'subcat', 'file' ] as $type ) { $from[$type] = $request->getVal( "{$type}from", $oldFrom ); $until[$type] = $request->getVal( "{$type}until", $oldUntil );