projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2716b97
)
Extra default parameter added to meta_forward function.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 24 Dec 2017 07:12:09 +0000
(08:12 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 24 Dec 2017 07:12:09 +0000
(08:12 +0100)
includes/ui/ui_controls.inc
patch
|
blob
|
history
diff --git
a/includes/ui/ui_controls.inc
b/includes/ui/ui_controls.inc
index 9dc24a4f4cb550d67bf1969fc51bbc78f2197d5e..52f417bb486f92f253faa84594079cda1a71759b 100644
(file)
--- a/
includes/ui/ui_controls.inc
+++ b/
includes/ui/ui_controls.inc
@@
-157,7
+157,7
@@
function vertical_space($params='')
echo "</td></tr><tr><td valign=center $params>";
}
echo "</td></tr><tr><td valign=center $params>";
}
-function meta_forward($forward_to, $params="", $timeout=0)
+function meta_forward($forward_to, $params="", $timeout=0
, $return=false
)
{
global $Ajax;
echo "<meta http-equiv='Refresh' content='".$timeout."; url=$forward_to?$params'>\n";
{
global $Ajax;
echo "<meta http-equiv='Refresh' content='".$timeout."; url=$forward_to?$params'>\n";
@@
-165,7
+165,7
@@
function meta_forward($forward_to, $params="", $timeout=0)
echo " " . _("If this does not happen") . " " . "<a href='$forward_to?$params'>" . _("click here") . "</a> " . _("to continue") . ".<br><br></center>\n";
if ($params !='') $params = '?'.$params;
$Ajax->redirect($forward_to.$params);
echo " " . _("If this does not happen") . " " . "<a href='$forward_to?$params'>" . _("click here") . "</a> " . _("to continue") . ".<br><br></center>\n";
if ($params !='') $params = '?'.$params;
$Ajax->redirect($forward_to.$params);
- exit;
+
if (!$return)
exit;
}
//-----------------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------------