jenkins-bot has submitted this change and it was merged. Change subject: Add recently edited collection ......................................................................
Add recently edited collection Change-Id: I2873e177c329a2b96bb13cca8802a805646f99e1 --- M i18n/en.json M i18n/qqq.json M includes/specials/SpecialGather.php 3 files changed, 16 insertions(+), 1 deletion(-) Approvals: Jhernandez: Looks good to me, approved Jdlrobson: Looks good to me, approved jenkins-bot: Verified diff --git a/i18n/en.json b/i18n/en.json index 052abf7..2e31357 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -36,6 +36,8 @@ "gather-all-collections": "Active", "gather-collection-random-title": "Random pages", "gather-collection-random-description": "A collection of random pages from across {{SITENAME}}", + "gather-collection-edited-title": "Recently edited", + "gather-collection-edited-description": "A collection of the most recently edited pages from across {{SITENAME}}", "gather-editfeed-show": "Show", "gather-editfeed-title": "Edits to pages in my collections", "gather-editfeed-empty": "There have been no recent edits to any pages in this collection.", diff --git a/i18n/qqq.json b/i18n/qqq.json index a5e66e1..a80c5de 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -39,6 +39,8 @@ "gather-all-collections": "Label for tab pointing to all public collections.", "gather-collection-random-title": "Title of a collection which contains random items.", "gather-collection-random-description": "Description of a collection which contains random items.", + "gather-collection-edited-title": "Title of collection which contains recently edited items.", + "gather-collection-edited-description": "Description of a collection which contains the most recently edited pages from across {{SITENAME}}", "gather-editfeed-show": "Label for a button to switch to a list of pages from the list of updates to said pages.\n\n{{Identical|Show}}", "gather-editfeed-title": "Title for page that allows you to view edits inside a collection.", "gather-editfeed-empty": "Message that shows when no edits have been made recently to any pages inside a collection.", diff --git a/includes/specials/SpecialGather.php b/includes/specials/SpecialGather.php index f7ef79b..19eb73a 100644 --- a/includes/specials/SpecialGather.php +++ b/includes/specials/SpecialGather.php @@ -37,6 +37,16 @@ 'limit' => 10, 'continue' => array( 'r' => 4 ), ), + 'edited' => array( + 'title' => wfMessage( 'gather-collection-edited-title' ), + 'description' => wfMessage( 'gather-collection-edited-description' ), + 'params' => array( + 'generator' => 'recentchanges', + 'grcnamespace' => 0, + 'grclimit' => 20, + ), + 'limit' => 10, + ), ); } @@ -100,7 +110,8 @@ if ( isset( $this->specialCollections[$key] ) ) { $args = $this->specialCollections[$key]; $c = new models\Collection( 0, null, $args['title'], $args['description'] ); - $c = models\Collection::newFromApi( $c, $args['params'], $args['limit'], $args['continue'] ); + $c = models\Collection::newFromApi( $c, $args['params'], $args['limit'], + ( $args['continue'] ? $args['continue'] : array() ) ); $c->setUrl( SpecialPage::getTitleFor( 'Gather' ) ->getSubpage( 'explore' ) ->getSubpage( $key )->getLocalUrl() ); -- To view, visit https://gerrit.wikimedia.org/r/217790 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I2873e177c329a2b96bb13cca8802a805646f99e1 Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/extensions/Gather Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> Gerrit-Reviewer: Jdlrobson <jrob...@wikimedia.org> Gerrit-Reviewer: Jhernandez <jhernan...@wikimedia.org> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits