forked from extern/egroupware
remove ancient CreateObject('phpgwapi.javascript'), replace it with egw_framework::validate_file, which is availabe from 1.8 on I believe
This commit is contained in:
parent
c0bc4dc9de
commit
23f4bd5d17
@ -22,7 +22,6 @@ class importexport_export_ui {
|
||||
'download' => true,
|
||||
);
|
||||
|
||||
private $js;
|
||||
private $user;
|
||||
|
||||
/**
|
||||
@ -33,9 +32,8 @@ class importexport_export_ui {
|
||||
private $export_plugins;
|
||||
|
||||
public function __construct() {
|
||||
$this->js = $GLOBALS['egw']->js = is_object($GLOBALS['egw']->js) ? $GLOBALS['egw']->js : CreateObject('phpgwapi.javascript');
|
||||
$this->js->validate_file('.','export_dialog','importexport');
|
||||
$this->js->validate_file('.','importexport','importexport');
|
||||
egw_framework::validate_file('.','export_dialog','importexport');
|
||||
egw_framework::validate_file('.','importexport','importexport');
|
||||
$this->user = $GLOBALS['egw_info']['user']['user_id'];
|
||||
$this->export_plugins = importexport_helper_functions::get_plugins('all','export');
|
||||
$GLOBALS['egw_info']['flags']['include_xajax'] = true;
|
||||
@ -123,7 +121,6 @@ class importexport_export_ui {
|
||||
$sel_options['plugin'] = $plugins;
|
||||
*/
|
||||
}
|
||||
//$this->js->set_onload("set_style_by_class('tr','select_definition','display','none');");
|
||||
}
|
||||
else {
|
||||
$readonlys['plugin'] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user