Revision: 12076
http://sourceforge.net/p/xoops/svn/12076
Author: rgriffith
Date: 2013-09-21 03:26:06 +0000 (Sat, 21 Sep 2013)
Log Message:
-----------
Fixing Issue 1265 - system module exits on handling 'core.include.functions.redirectheader'
New event 'core.include.functions.redirectheader.start' triggered first that module preloads can listen for.
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/htdocs/include/functions.php
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/include/functions.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/include/functions.php 2013-09-20 23:14:07 UTC (rev 12075)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/include/functions.php 2013-09-21 03:26:06 UTC (rev 12076)
@@ -560,6 +560,8 @@
global $xoopsConfig, $xoopsLogger, $xoopsUserIsAdmin;
$xoopsPreload =& XoopsPreload::getInstance();
+ $xoopsPreload->triggerEvent('core.include.functions.redirectheader.start', array($url, $time, $message, $addredirect, $allowExternalLink));
+ // under normal circumstance this event will exit, so listen for the .start above
$xoopsPreload->triggerEvent('core.include.functions.redirectheader', array($url, $time, $message, $addredirect, $allowExternalLink));
if (preg_match("/[\\0-\\31]|about:|script:/i", $url)) {
|