Commit 9ef7de05 authored by Johannes Löthberg's avatar Johannes Löthberg Committed by Lukas Fleischer
Browse files

confparser: Split loading of config into own function

Signed-off-by: Johannes Löthberg's avatarJohannes Löthberg <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 3bc44963
function config_get($section, $key) {
function config_load() {
global $AUR_CONFIG;
if (!isset($AUR_CONFIG)) {
$AUR_CONFIG = parse_ini_file("../../conf/config", true, INI_SCANNER_RAW);
function config_get($section, $key) {
global $AUR_CONFIG;
return $AUR_CONFIG[$section][$key];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment