mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
d8e32ce5e1
commit
815e437f0c
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue