aboutsummaryrefslogtreecommitdiff
path: root/scripts/pagelist.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2021-11-25 07:24:44 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2021-11-25 07:24:44 +0000
commitfa9762126427bb1c13b846aef08d898691329633 (patch)
tree81610b220a61330dede2448025e435317632bd57 /scripts/pagelist.php
parent0a3ca27102a8e90d0851620e8b5d523a7eb234b9 (diff)
downloadpmwiki.svn-fa9762126427bb1c13b846aef08d898691329633.tar.bz2
Pagelist searches with wrong $SearchPatterns will now use $SearchPatterns["default"] rather than empty array (effectively all pages). This is to allow admins to limit search lists.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@3788 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/pagelist.php')
-rw-r--r--scripts/pagelist.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/pagelist.php b/scripts/pagelist.php
index 8fd2880d..84733ddc 100644
--- a/scripts/pagelist.php
+++ b/scripts/pagelist.php
@@ -326,6 +326,7 @@ function PageListSources(&$list, &$opt, $pn, &$page) {
global $SearchPatterns;
StopWatch('PageListSources begin');
+ if (!isset($SearchPatterns[$opt['list']])) $opt['list'] = 'default';
if ($opt['list'] == 'grouphomes') EnablePageListGroupHomes();
## add the list= option to our list of pagename filter patterns
$opt['=pnfilter'] = array_merge((array)@$opt['=pnfilter'],