From 0c86f5214f7860420c4e9c66e59b68aebcc248d6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 24 Aug 2017 11:57:18 +0200 Subject: [PATCH] fix PHP error class config not found when storing ACL for resources on minimal install --- resources/inc/class.resources_acl_ui.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/inc/class.resources_acl_ui.inc.php b/resources/inc/class.resources_acl_ui.inc.php index bf1f5bc01e..fb6d000383 100755 --- a/resources/inc/class.resources_acl_ui.inc.php +++ b/resources/inc/class.resources_acl_ui.inc.php @@ -30,7 +30,7 @@ class resources_acl_ui 'index' => true, 'edit' => true, ); - + public static $acl_map = array( 'read' => Acl::READ, 'write' => Acl::ADD, @@ -73,7 +73,7 @@ class resources_acl_ui $template->exec(__METHOD__, $content, $sel_options, $readonlys); } - + protected static function get_actions($appname='resources') { $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['subs'] = count($row['children']); $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']); - + return $count; } @@ -209,7 +209,7 @@ class resources_acl_ui { 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.'); } catch (Api\Exception\WrongUserinput $e)