forked from extern/egroupware
changing old PHPGW_API_INC to EGW_API_INC in cli, adding a read function to bodefinitions, Still you cannot view or edit definitions with UI
This commit is contained in:
parent
ae9c0bc918
commit
495c19fb95
@ -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))
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user