mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
allow to call etemplate widgets via xajax:
- "etemplate" handler replaces the appname with etemplate - uietemplate::js_pseudo_funcs() replace xajax_doXMLHTTP('etemplate.xyz_widget.method', with xajax_doXMLHTTP('currentapp.xyz_widget.method.etemplate', --> fixes the not working new link-widgets in trunc (not working for non-admins / no etemplate run rights)
This commit is contained in:
parent
c1b1453108
commit
91068e438f
@ -87,6 +87,9 @@
|
||||
);
|
||||
error_log("xajax_doXMLHTTP() /etemplate/process_exec handler: arg0='$arg0', menuaction='$_GET[menuaction]'");
|
||||
break;
|
||||
case 'etemplate': // eg. ajax code in an eTemplate widget
|
||||
$arg0 = ($appName = 'etemplate').'.'.$className.'.'.$functionName;
|
||||
break;
|
||||
}
|
||||
if(substr($className,0,4) != 'ajax' && $arg0 != 'etemplate.etemplate.process_exec' && substr($functionName,0,4) != 'ajax' ||
|
||||
!preg_match('/^[A-Za-z0-9_]+\.[A-Za-z0-9_]+\.[A-Za-z0-9_]+$/',$arg0))
|
||||
|
Loading…
Reference in New Issue
Block a user