X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fpage%2FCategoryPage.php;h=55fe1562da0d42ab248ea4163cb4882961353e7b;hp=50cb96ca0d395ba77f9bb829bf27875ae5dc8ae5;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hpb=ca2c2c0f4fdd633779ce1d48d09645275b0e5827 diff --git a/includes/page/CategoryPage.php b/includes/page/CategoryPage.php index 50cb96ca0d..55fe1562da 100644 --- a/includes/page/CategoryPage.php +++ b/includes/page/CategoryPage.php @@ -66,7 +66,7 @@ class CategoryPage extends Article { return; } - if ( !Hooks::run( 'CategoryPageView', array( &$this ) ) ) { + if ( !Hooks::run( 'CategoryPageView', [ &$this ] ) ) { return; } @@ -94,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 );