mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 22:08:45 +01:00
add framework create trigger (cd=yes) to phpgw_forward urls
This commit is contained in:
parent
7d19819ba1
commit
81f1aad90c
@ -106,11 +106,14 @@ else
|
|||||||
$GLOBALS['egw_info']['user']['preferences']['common']['template_set'] = $GLOBALS['egw_info']['login_template_set'];
|
$GLOBALS['egw_info']['user']['preferences']['common']['template_set'] = $GLOBALS['egw_info']['login_template_set'];
|
||||||
|
|
||||||
$class = $GLOBALS['egw_info']['login_template_set'].'_framework';
|
$class = $GLOBALS['egw_info']['login_template_set'].'_framework';
|
||||||
|
if (!class_exists($class))
|
||||||
|
{
|
||||||
if(!file_exists($framework = $GLOBALS['egw_info']['server']['template_dir'].'/class.'.$class.'.inc.php'))
|
if(!file_exists($framework = $GLOBALS['egw_info']['server']['template_dir'].'/class.'.$class.'.inc.php'))
|
||||||
{
|
{
|
||||||
$framework = EGW_SERVER_ROOT . '/phpgwapi/templates/idots/class.'.($class='idots_framework').'.inc.php';
|
$framework = EGW_SERVER_ROOT . '/phpgwapi/templates/idots/class.'.($class='idots_framework').'.inc.php';
|
||||||
}
|
}
|
||||||
require_once($framework);
|
require_once($framework);
|
||||||
|
}
|
||||||
$GLOBALS['egw']->framework = new $class($GLOBALS['egw_info']['login_template_set']);
|
$GLOBALS['egw']->framework = new $class($GLOBALS['egw_info']['login_template_set']);
|
||||||
unset($framework); unset($class);
|
unset($framework); unset($class);
|
||||||
|
|
||||||
@ -333,6 +336,7 @@ else
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
list($forward,$extra_vars) = explode('?',$forward,2);
|
list($forward,$extra_vars) = explode('?',$forward,2);
|
||||||
|
$extra_vars .= ($extra_vars ? '&' : '').'cd=yes';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strpos($_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_URI']) === false) {
|
if(strpos($_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_URI']) === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user