summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-13 13:53:44 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-13 13:53:44 -0400
commit8ba7e8cb76a67468f8eaf36e7dcd64cebfed396d (patch)
tree03a96d5464d4ef496f6475cd7b2b8aef5424df7e /lib
parent8ba36458ef78b6eec8abfcf5b08ca36d7fbd8b83 (diff)
function for retrieving a config variable
darcs-hash:20080613175344-84dde-253b5b55ea8ae85b807cba2e23ea885c6bbb0b8f.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php5
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];
+}