mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-28 16:12:07 +01:00
"using static method of config class to fetch the custom fields"
This commit is contained in:
parent
01e04e6fc3
commit
b17b108062
@ -10,9 +10,6 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
|
||||
include_once(EGW_INCLUDE_ROOT.'/etemplate/inc/class.so_sql.inc.php');
|
||||
|
||||
/**
|
||||
* General storage object for resources
|
||||
*
|
||||
@ -23,12 +20,10 @@ class so_resources extends so_sql
|
||||
{
|
||||
function so_resources()
|
||||
{
|
||||
$this->so_sql('resources','egw_resources');
|
||||
parent::__construct('resources','egw_resources');
|
||||
|
||||
$custom =& CreateObject('admin.customfields','resources');
|
||||
$this->customfields = $custom->get_customfields();
|
||||
$this->soextra =& CreateObject('etemplate.so_sql');
|
||||
$this->soextra->so_sql('resources','egw_resources_extra');
|
||||
$this->customfields = config::get_customfields('resources');
|
||||
$this->soextra = new so_sql('resources','egw_resources_extra');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user