diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-13 13:53:44 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-13 13:53:44 -0400 |
commit | 8ba7e8cb76a67468f8eaf36e7dcd64cebfed396d (patch) | |
tree | 03a96d5464d4ef496f6475cd7b2b8aef5424df7e /lib | |
parent | 8ba36458ef78b6eec8abfcf5b08ca36d7fbd8b83 (diff) |
function for retrieving a config variable
darcs-hash:20080613175344-84dde-253b5b55ea8ae85b807cba2e23ea885c6bbb0b8f.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 4869d4dfd..a630646d7 100644 --- a/lib/util.php +++ b/lib/util.php @@ -833,3 +833,8 @@ function common_negotiate_type($cprefs, $sprefs) { return $besttype; } + +function common_config($main, $sub) { + global $config; + return $config[$main][$sub]; +} |