mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
fix PHP error class config not found when storing ACL for resources on minimal install
This commit is contained in:
parent
bf658d8dd8
commit
82081eb58a
@ -30,7 +30,7 @@ class resources_acl_ui
|
|||||||
'index' => true,
|
'index' => true,
|
||||||
'edit' => true,
|
'edit' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
public static $acl_map = array(
|
public static $acl_map = array(
|
||||||
'read' => Acl::READ,
|
'read' => Acl::READ,
|
||||||
'write' => Acl::ADD,
|
'write' => Acl::ADD,
|
||||||
@ -73,7 +73,7 @@ class resources_acl_ui
|
|||||||
|
|
||||||
$template->exec(__METHOD__, $content, $sel_options, $readonlys);
|
$template->exec(__METHOD__, $content, $sel_options, $readonlys);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static function get_actions($appname='resources') {
|
protected static function get_actions($appname='resources') {
|
||||||
|
|
||||||
$actions = array(
|
$actions = array(
|
||||||
@ -136,7 +136,7 @@ class resources_acl_ui
|
|||||||
{
|
{
|
||||||
$row['icon_url'] = $GLOBALS['egw_info']['server']['webserver_url']. resources_bo::ICON_PATH.'/'.$row['data']['icon'];
|
$row['icon_url'] = $GLOBALS['egw_info']['server']['webserver_url']. resources_bo::ICON_PATH.'/'.$row['data']['icon'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$row['subs'] = count($row['children']);
|
$row['subs'] = count($row['children']);
|
||||||
|
|
||||||
$row['class'] = 'level'.$row['level'];
|
$row['class'] = 'level'.$row['level'];
|
||||||
@ -148,7 +148,7 @@ class resources_acl_ui
|
|||||||
|
|
||||||
}
|
}
|
||||||
$rows = $count <= $query['num_rows'] ? array_values($rows) : array_slice($rows, $query['start'], $query['num_rows']);
|
$rows = $count <= $query['num_rows'] ? array_values($rows) : array_slice($rows, $query['start'], $query['num_rows']);
|
||||||
|
|
||||||
return $count;
|
return $count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ class resources_acl_ui
|
|||||||
{
|
{
|
||||||
unset($location_cats[$key]);
|
unset($location_cats[$key]);
|
||||||
}
|
}
|
||||||
config::save_value('location_cats', implode(',', $location_cats), 'resources');
|
Api\Config::save_value('location_cats', implode(',', $location_cats), 'resources');
|
||||||
$msg = lang('Category saved.');
|
$msg = lang('Category saved.');
|
||||||
}
|
}
|
||||||
catch (Api\Exception\WrongUserinput $e)
|
catch (Api\Exception\WrongUserinput $e)
|
||||||
|
Loading…
Reference in New Issue
Block a user