Added wrapper for xajax.addScriptCall(), added ?cd=10 to json.php response again

This commit is contained in:
Andreas Stöckel 2010-06-11 11:43:54 +00:00
parent 22600d0098
commit b841f570f0
2 changed files with 10 additions and 2 deletions

View File

@ -19,7 +19,7 @@
function xajax_redirect(&$anon_account)
{
$response = new egw_json_response();
$response->redirect($GLOBALS['egw_info']['server']['webserver_url'].'/login.php', true);
$response->redirect($GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=10', true);
$response->printOutput();
common::egw_exit();

View File

@ -54,7 +54,7 @@ class egw_json_request
//Call the supplied callback function along with the menuaction and the passed parameters
$this->handleRequest($menuaction, $parameters);
}
}
}
return NULL;
}
@ -382,6 +382,14 @@ class egw_json_response
$this->redirect($url);
}
public function addScriptCall($func)
{
$args = func_get_args();
$func = array_shift($args);
$this->script("$func(".implode(",", $args).");");
}
public function getXML()
{
return '';