aboutsummaryrefslogtreecommitdiff
path: root/scripts/pagelist.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2020-04-16 07:09:32 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2020-04-16 07:09:32 +0000
commitaa1676f05a89a025f26c2285fe44c390af5b89f0 (patch)
tree9cebe9fc2d649cbd66919195893697b01ba34745 /scripts/pagelist.php
parent78f4790f26533da40c31e2713f0c74009ee30fc9 (diff)
downloadpmwiki.svn-aa1676f05a89a025f26c2285fe44c390af5b89f0.tar.bz2
sample-config.php stip trailing spaces; add comments next to preg_replace and create_function that old addons may cause PHP deprecation notices; muse some PHP notices
git-svn-id: svn://pmwiki.org/pmwiki/trunk@3634 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/pagelist.php')
-rw-r--r--scripts/pagelist.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pagelist.php b/scripts/pagelist.php
index e370cb81..308d3d3f 100644
--- a/scripts/pagelist.php
+++ b/scripts/pagelist.php
@@ -517,7 +517,8 @@ function PageListSort(&$list, &$opt, $pn, &$page) {
$PCache[$pn][$o] = PageVar($pn, $o);
foreach($PageListSortCmp as $o=>$f)
if(! is_callable($f)) # DEPRECATED
- $PageListSortCmp[$o] = create_function('$x,$y', "global \$PCache; return {$f};");
+ $PageListSortCmp[$o] = create_function( # old format addon
+ '$x,$y', "global \$PCache; return {$f};");
StopWatch('PageListSort sort');
if (count($opt['=order'])) {