[aur-dev] [PATCH 3/3 v2] confparser: Add function for getting the items of a section

Johannes Löthberg johannes at kyriasis.com
Sun Jun 14 11:54:45 UTC 2015


Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
---
 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 b494058..c2459eb 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_key_exists($key) {
 	global $AUR_CONFIG;
 	config_load();
-- 
2.4.2


More information about the aur-dev mailing list