1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| if ($method != "display" && $loginOK) {
if (!is_array($object))
$objectArr = array($object);
else
$objectArr = $object;
$paramsError = array();
foreach ($objectArr as $object)
if (empty($error)) {
$error = Controler::callAction($object, $handler);
if (!empty($error))
$paramsError = array_merge($paramsError, Controler::getParamNames($handler, get_class($object)));
}
$logger->logMessage($logger->LOG_INFO, "nextAction avant = $nextAction/".empty($nextAction));
if (empty($nextAction))
$nextAction = Controler::nextAction($handler);
$logger->logMessage($logger->LOG_INFO, "nextAction final = $nextAction");
if (!empty($nextAction) && empty($error)) {
if ($nextAction == "close_refresh" && !defined("DEBUG")) {
print "<script type=\"text/javascript\"> window.opener.location.href = window.opener.location.href </script>";
print "<script type=\"text/javascript\"> window.close() </script>";
} else
Controler::goto($nextAction);
} else
Controler::gotoPrevious($error, $paramsError);
} |
Partager