diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-02-10 06:23:21 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-02-10 06:23:21 +0000 |
commit | 99fa594684b0842171af391fa9e86b93ca02d428 (patch) | |
tree | 1d3ced9e21c6977b4e20a60d626f797e7b6fa709 /pmwiki.php | |
parent | 0a67e7e373c2530e8ad2afddcfb350dc68307ac6 (diff) | |
download | pmwiki.svn-99fa594684b0842171af391fa9e86b93ca02d428.tar.bz2 |
Refactor $PostConfig to allow called functions to update it (cont.)
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4621 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'pmwiki.php')
-rw-r--r-- | pmwiki.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -439,9 +439,8 @@ if (IsEnabled($EnableStdConfig,1)) asort($PostConfig, SORT_NUMERIC); while(count($PostConfig)) { - $k = array_key_first($PostConfig); - $v = $PostConfig[$k]; - array_shift($PostConfig); + $k = array_keys($PostConfig)[0]; + $v = array_shift($PostConfig); if (!$k || !$v || $v<50) continue; if (function_exists($k)) $k($pagename); elseif (file_exists($k)) include_once($k); |