diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2015-01-24 19:07:54 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2015-01-24 19:07:54 +0000 |
commit | e3c858d21bb43bc54db312c1bce83b9263b65ec2 (patch) | |
tree | 098a96a8f0d323d583d6afabdb73bcf3f09ef7da | |
parent | c63212528444f61e8f4f6e527f8390f5ba8921d0 (diff) | |
download | pmwiki.svn-e3c858d21bb43bc54db312c1bce83b9263b65ec2.tar.bz2 |
Add $AbortFunction
git-svn-id: svn://pmwiki.org/pmwiki/trunk@3026 524c5546-5005-0410-9a3e-e25e191bd360
-rw-r--r-- | pmwiki.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1177,7 +1177,8 @@ function RetrieveAuthPage($pagename, $level, $authprompt=true, $since=0) { function Abort($msg, $info='') { # exit pmwiki with an abort message - global $ScriptUrl, $Charset; + global $ScriptUrl, $Charset, $AbortFunction; + if(@$AbortFunction) return $AbortFunction($msg, $info); if ($info) $info = "<p class='vspace'><a target='_blank' rel='nofollow' href='http://www.pmwiki.org/pmwiki/info/$info'>$[More information]</a></p>"; $msg = "<h3>$[PmWiki can't process your request]</h3> |