# Subclasses can change this to override the viewer class.
protected $mCategoryViewerClass = 'CategoryViewer';
+ /**
+ * @var WikiCategoryPage
+ */
+ protected $mPage;
+
/**
* @param Title $title
* @return WikiCategoryPage
return;
}
- if ( !Hooks::run( 'CategoryPageView', array( &$this ) ) ) {
+ if ( !Hooks::run( 'CategoryPageView', [ &$this ] ) ) {
return;
}
$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 );