From e357db3122acbc06c9f976c2e7053d95adfd93f6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 13 Mar 2011 00:07:22 +0000 Subject: [PATCH] * (bug 27670) Ordering by timestamp (and usage of start and end) isn't as clear in auto generated document, as it is on mw.org Followup r83797, closing. Adding bit of documentation, + RELEASE-NOTES --- RELEASE-NOTES | 3 +++ includes/api/ApiQueryBase.php | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c72cd335ce..371932c262 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -244,6 +244,9 @@ PHP if you have not done so prior to upgrading MediaWiki. * (bug 28010) Passing a non existant user to list=users gives internal error * (bug 27549) action=query&list=users&usprop=groups doesn't show implicit groups if a user doesn't have explicit groups +* (bug 27670) Ordering by timestamp (and usage of start and end) isn't as clear + in auto generated document, as it is on mw.org + === Languages updated in 1.18 === diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 483c99a98c..817146658e 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -440,6 +440,13 @@ abstract class ApiQueryBase extends ApiBase { return substr( $this->keyToTitle( $keyPart . 'x' ), 0, - 1 ); } + /** + * Gets the personalised direction parameter description + * + * @param string $p ModulePrefix + * @param string $extraDirText Any extra text to be appended on the description + * @return array + */ public function getDirectionDescription( $p = '', $extraDirText = '' ) { return array( "In which direction to enumerate{$extraDirText}", -- 2.20.1