diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-14 15:08:40 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-14 17:58:56 +0200 |
commit | 815e437f0c1889167b4005941404e05bb742416e (patch) | |
tree | c9996217b853d1ed88fc0355097bfe1110d5eff7 | |
parent | d8e32ce5e112d1441c24464003e971e010fee5ac (diff) | |
download | aur-815e437f0c1889167b4005941404e05bb742416e.tar.gz aur-815e437f0c1889167b4005941404e05bb742416e.tar.xz |
confparser: Add function for getting the items of a section
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r-- | web/lib/confparser.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/lib/confparser.inc.php b/web/lib/confparser.inc.php index db44b368..6368b869 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(); |