diff --git a/importexport/importexport_cli.php b/importexport/importexport_cli.php index 83bb40bfe8..749a65aaba 100755 --- a/importexport/importexport_cli.php +++ b/importexport/importexport_cli.php @@ -128,7 +128,7 @@ } $GLOBALS['egw_info']['server']['sessions_type'] = 'db'; // no php4-sessions availible for cgi - include(PHPGW_API_INC.'/functions.inc.php'); + include(EGW_API_INC.'/functions.inc.php'); // check file if (!is_readable($file)) diff --git a/importexport/inc/class.bodefinitions.inc.php b/importexport/inc/class.bodefinitions.inc.php index 23cf2cee56..77221d0200 100644 --- a/importexport/inc/class.bodefinitions.inc.php +++ b/importexport/inc/class.bodefinitions.inc.php @@ -53,7 +53,10 @@ class bodefinitions { public function get_definitions() { return $this->definitions; } - + public function read($definition_id) { + $definition = new definition( $definition_id['name'] ); + return $definition->get_record_array(); + } /** * deletes a defintion *