mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
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,
|
'download' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
private $js;
|
|
||||||
private $user;
|
private $user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,9 +32,8 @@ class importexport_export_ui {
|
|||||||
private $export_plugins;
|
private $export_plugins;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->js = $GLOBALS['egw']->js = is_object($GLOBALS['egw']->js) ? $GLOBALS['egw']->js : CreateObject('phpgwapi.javascript');
|
egw_framework::validate_file('.','export_dialog','importexport');
|
||||||
$this->js->validate_file('.','export_dialog','importexport');
|
egw_framework::validate_file('.','importexport','importexport');
|
||||||
$this->js->validate_file('.','importexport','importexport');
|
|
||||||
$this->user = $GLOBALS['egw_info']['user']['user_id'];
|
$this->user = $GLOBALS['egw_info']['user']['user_id'];
|
||||||
$this->export_plugins = importexport_helper_functions::get_plugins('all','export');
|
$this->export_plugins = importexport_helper_functions::get_plugins('all','export');
|
||||||
$GLOBALS['egw_info']['flags']['include_xajax'] = true;
|
$GLOBALS['egw_info']['flags']['include_xajax'] = true;
|
||||||
@ -123,7 +121,6 @@ class importexport_export_ui {
|
|||||||
$sel_options['plugin'] = $plugins;
|
$sel_options['plugin'] = $plugins;
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
//$this->js->set_onload("set_style_by_class('tr','select_definition','display','none');");
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$readonlys['plugin'] = true;
|
$readonlys['plugin'] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user