X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryRedirects.php;h=afb2c5618f15b6e4f29cde6beb095628ee64c810;hb=26247006e9210ae327ba5a99234e040cd8a50d8d;hp=1deb1f84d8382ae42536b33e73fcda2e89589d0e;hpb=7a74e085d926a2a8bcb5d2ef1a703e3c72ca083a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryRedirects.php b/includes/api/ApiQueryRedirects.php index 1deb1f84d8..afb2c5618f 100644 --- a/includes/api/ApiQueryRedirects.php +++ b/includes/api/ApiQueryRedirects.php @@ -32,7 +32,7 @@ */ class ApiQueryRedirects extends ApiQueryGeneratorBase { - public function __construct( $query, $moduleName ) { + public function __construct( ApiQuery $query, $moduleName ) { parent::__construct( $query, $moduleName, 'rd' ); } @@ -45,7 +45,7 @@ class ApiQueryRedirects extends ApiQueryGeneratorBase { } /** - * @param $resultPageSet ApiPageSet + * @param ApiPageSet $resultPageSet */ private function run( ApiPageSet $resultPageSet = null ) { $db = $this->getDB(); @@ -116,7 +116,10 @@ class ApiQueryRedirects extends ApiQueryGeneratorBase { $this->dieUsageMsg( 'show' ); } $this->addWhereIf( "rd_fragment != $emptyString", isset( $show['fragment'] ) ); - $this->addWhereIf( "rd_fragment = $emptyString OR rd_fragment IS NULL", isset( $show['!fragment'] ) ); + $this->addWhereIf( + "rd_fragment = $emptyString OR rd_fragment IS NULL", + isset( $show['!fragment'] ) + ); } $map = $pageSet->getAllTitlesByNamespace();