X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryDeletedrevs.php;h=f738c507ccc3e820da886bd29063906999b6cf05;hb=db7de5f4c117a3312607b0a1a652b3ee6074af88;hp=7585ba760c9c889d77c35252a083cc4feded35aa;hpb=bb70f87a13f7b7b0536fa67d853dc15af756eda7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 7585ba760c..f738c507cc 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -176,8 +176,12 @@ class ApiQueryDeletedrevs extends ApiQueryBase { } elseif ( $mode == 'all' ) { $this->addWhereFld( 'ar_namespace', $params['namespace'] ); - $from = $params['from'] === null ? null : $this->titlePartToKey( $params['from'], $params['namespace'] ); - $to = $params['to'] === null ? null : $this->titlePartToKey( $params['to'], $params['namespace'] ); + $from = $params['from'] === null + ? null + : $this->titlePartToKey( $params['from'], $params['namespace'] ); + $to = $params['to'] === null + ? null + : $this->titlePartToKey( $params['to'], $params['namespace'] ); $this->addWhereRange( 'ar_title', $dir, $from, $to ); if ( isset( $params['prefix'] ) ) { @@ -488,12 +492,12 @@ class ApiQueryDeletedrevs extends ApiQueryBase { return array( 'List deleted revisions.', 'Operates in three modes:', - ' 1) List deleted revisions for the given title(s), sorted by timestamp', - ' 2) List deleted contributions for the given user, sorted by timestamp (no titles specified)', + ' 1) List deleted revisions for the given title(s), sorted by timestamp.', + ' 2) List deleted contributions for the given user, sorted by timestamp (no titles specified).', " 3) List all deleted revisions in the given namespace, sorted by title and timestamp', - ' (no titles specified, {$p}user not set)", + ' (no titles specified, {$p}user not set).", 'Certain parameters only apply to some modes and are ignored in others.', - 'For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3', + 'For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3.', ); }