aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-04-28 07:07:48 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-04-28 07:07:48 +0000
commitd76bf03f2ae9ffaa8c3ff65220f6ab752c00870a (patch)
tree2b4d158f5949853adb3ea157e30cfecf916f699c /scripts
parent60b7c42435e46d964a83f410c9e06692a4859ce7 (diff)
downloadpmwiki.svn-d76bf03f2ae9ffaa8c3ff65220f6ab752c00870a.tar.bz2
Add (:if action browse,edit:) conditional.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4703 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts')
-rw-r--r--scripts/stdmarkup.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/stdmarkup.php b/scripts/stdmarkup.php
index 2afe852d..c368f1ca 100644
--- a/scripts/stdmarkup.php
+++ b/scripts/stdmarkup.php
@@ -114,6 +114,7 @@ function CondText2($pagename, $text, $code = '') {
if (!isset($Conditions[$condname]))
return preg_replace_callback($CondTextPattern, $repl, $condtext);
+
$tf = @eval("return ({$Conditions[$condname]});");
if ($tf xor $not)
return preg_replace_callback($CondTextPattern, $repl, $condtext);