From 815e437f0c1889167b4005941404e05bb742416e Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 14 Jun 2015 15:08:40 +0200 Subject: confparser: Add function for getting the items of a section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- web/lib/confparser.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/lib/confparser.inc.php b/web/lib/confparser.inc.php index db44b36..6368b86 100644 --- a/web/lib/confparser.inc.php +++ b/web/lib/confparser.inc.php @@ -24,6 +24,13 @@ function config_get_bool($section, $key) { return ($val == 'yes' || $val == 'true' || $val == '1'); } +function config_items($section) { + global $AUR_CONFIG; + config_load(); + + return $AUR_CONFIG[$section]; +} + function config_section_exists($key) { global $AUR_CONFIG; config_load(); -- cgit v1.2.3-54-g00ecf