Rudloff has uploaded a new change for review. https://gerrit.wikimedia.org/r/149628
Change subject: ignoresubpages parameter ...................................................................... ignoresubpages parameter Change-Id: I7e8cb9e05dbd69a09d7b7852419a8dd28b704c93 --- M DynamicPageList.php 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/intersection refs/changes/28/149628/1 diff --git a/DynamicPageList.php b/DynamicPageList.php index 07fa7fb..bb023fb 100644 --- a/DynamicPageList.php +++ b/DynamicPageList.php @@ -124,6 +124,7 @@ $suppressErrors = false; $showNamespace = true; + $ignoreSubpages = false; $addFirstCategoryDate = false; $dateFormat = ''; $stripYear = false; @@ -387,6 +388,13 @@ $showNamespace = true; } break; + case 'ignoresubpages': + if ( 'true' == $arg ) { + $ignoreSubpages = true; + } else { + $ignoreSubpages = false; + } + break; case 'googlehack': if ( 'false' == $arg ) { $googleHack = false; @@ -497,6 +505,10 @@ break; } + if ($ignoreSubpages) { + $where[] = "page_title NOT LIKE '%/%'"; + } + $currentTableNumber = 1; $categorylinks = $dbr->tableName( 'categorylinks' ); -- To view, visit https://gerrit.wikimedia.org/r/149628 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7e8cb9e05dbd69a09d7b7852419a8dd28b704c93 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/intersection Gerrit-Branch: master Gerrit-Owner: Rudloff <cont...@rudloff.pro> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits