Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/203991
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather
refs/changes/91/203991/1
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: newchange
Gerrit-Change-Id: I076b703063630777181cd334f03634b3edd6988c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits