Call functions in common statically

This commit is contained in:
Nathan Gray 2010-11-05 19:31:53 +00:00
parent 5fc2ffaba6
commit 58231dfad1
2 changed files with 3 additions and 3 deletions

View File

@ -260,7 +260,7 @@ class importexport_definitions_ui
{ {
$GLOBALS['egw']->js->set_onload("document.getElementById('picturebox').style.display = 'none';"); $GLOBALS['egw']->js->set_onload("document.getElementById('picturebox').style.display = 'none';");
egw_framework::validate_file('.', 'etemplate', 'etemplate'); egw_framework::validate_file('.', 'etemplate', 'etemplate');
$GLOBALS['egw']->common->egw_header(); common::egw_header();
echo '<div id="divMain">'."\n"; echo '<div id="divMain">'."\n";
echo '<div><h3>{Im|Ex}port Wizard</h3></div>'; echo '<div><h3>{Im|Ex}port Wizard</h3></div>';
// adding a manual icon to every popup // adding a manual icon to every popup

View File

@ -191,11 +191,11 @@ class importexport_export_csv implements importexport_iface_export_record
if(is_array($record->$name)) { if(is_array($record->$name)) {
$names = array(); $names = array();
foreach($record->$name as $_name) { foreach($record->$name as $_name) {
$names[] = $GLOBALS['egw']->common->grab_owner_name($_name); $names[] = common::grab_owner_name($_name);
} }
$record->$name = implode(', ', $names); $record->$name = implode(', ', $names);
} else { } else {
$record->$name = $GLOBALS['egw']->common->grab_owner_name($record->$name); $record->$name = common::grab_owner_name($record->$name);
} }
} }
} }