jenkins-bot has submitted this change and it was merged.

Change subject: Show pages outside main namespace
......................................................................


Show pages outside main namespace

Note this doesn't take care of ordering which is currently not
easily doable.

Bug: T94786
Change-Id: I076b703063630777181cd334f03634b3edd6988c
---
M includes/views/Collection.php
1 file changed, 2 insertions(+), 4 deletions(-)

Approvals:
  Jhernandez: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/views/Collection.php b/includes/views/Collection.php
index d22bdac..259f8af 100644
--- a/includes/views/Collection.php
+++ b/includes/views/Collection.php
@@ -168,10 +168,8 @@
        public function getCollectionItems( models\Collection $collection ) {
                $html = Html::openElement( 'div', array( 'class' => 
'collection-cards' ) );
                foreach ( $collection as $item ) {
-                       if ( $item->getTitle()->getNamespace() === NS_MAIN ) {
-                               $view = new CollectionItemCard( $item );
-                               $html .= $view->getHtml();
-                       }
+                       $view = new CollectionItemCard( $item );
+                       $html .= $view->getHtml();
                }
                // FIXME: Pagination(??) currently we
                // limit the size of the collection

-- 
To view, visit https://gerrit.wikimedia.org/r/203991
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I076b703063630777181cd334f03634b3edd6988c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: Jhernandez <jhernan...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to