Mattflaschen has uploaded a new change for review. https://gerrit.wikimedia.org/r/103734
Change subject: Breaking Change: All lower case excludedtitle for consistency ...................................................................... Breaking Change: All lower case excludedtitle for consistency This is the standard for the MW API. See, for example, https://www.mediawiki.org/wiki/API:Query Change-Id: If2835fe099ba0455c721828d579027bda1772a8a --- M api/ApiGettingStartedGetPages.php 1 file changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GettingStarted refs/changes/34/103734/1 diff --git a/api/ApiGettingStartedGetPages.php b/api/ApiGettingStartedGetPages.php index b1fcc22..f19b1d0 100644 --- a/api/ApiGettingStartedGetPages.php +++ b/api/ApiGettingStartedGetPages.php @@ -16,7 +16,7 @@ $user = $this->getUser(); $taskName = $this->getParameter( 'taskname' ); - $excludedTitle = Title::newFromText( $this->getParameter( 'excludedTitle' ) ); + $excludedTitle = Title::newFromText( $this->getParameter( 'excludedtitle' ) ); $count = $this->getParameter( 'count' ); if ( !isset( $wgGettingStartedTasks[$taskName] ) ) { @@ -99,7 +99,7 @@ public function getParamDescription() { return array( 'taskname' => 'Task name, for example, "copyedit"', - 'excludedTitle' => 'Full title of a page to exclude from the list', + 'excludedtitle' => 'Full title of a page to exclude from the list', 'count' => 'Requested count; will attempt to fetch this exact number, but may fetch fewer if no more are found after multiple attempts' ); } @@ -110,7 +110,7 @@ ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true, ), - 'excludedTitle' => array( + 'excludedtitle' => array( ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => false, ), @@ -123,7 +123,7 @@ public function getExamples() { return array( - 'api.php?action=gettingstartedgetpages&taskname=copyedit&excludedTitle=Earth&count=1', + 'api.php?action=gettingstartedgetpages&taskname=copyedit&excludedtitle=Earth&count=1', ); } } -- To view, visit https://gerrit.wikimedia.org/r/103734 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If2835fe099ba0455c721828d579027bda1772a8a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GettingStarted Gerrit-Branch: master Gerrit-Owner: Mattflaschen <mflasc...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits