summaryrefslogtreecommitdiff
path: root/inc/confutils.php
diff options
context:
space:
mode:
authorSteven Danz <steven-danz@kc.rr.com>2005-06-28 04:36:28 +0200
committerSteven Danz <steven-danz@kc.rr.com>2005-06-28 04:36:28 +0200
commitd2ee49cef0fd47388b8a1ac8cb259dac5fb8c670 (patch)
tree116c6baf2c9b1d22e5503c5d22a4911d440e1cac /inc/confutils.php
parent38c08c2be9122c742a3ff6c2815dbc1f515476d1 (diff)
downloadrpg-d2ee49cef0fd47388b8a1ac8cb259dac5fb8c670.tar.gz
rpg-d2ee49cef0fd47388b8a1ac8cb259dac5fb8c670.tar.bz2
local_acronyms.patch
Add the option of using a local.acronyms.conf file to specify local acronyms without having to edit the default set darcs-hash:20050628023628-3ed6d-2740b411efc124671f235ff9ebfc292c7d331709.gz
Diffstat (limited to 'inc/confutils.php')
-rw-r--r--inc/confutils.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/confutils.php b/inc/confutils.php
index a0ad322fb..329358f62 100644
--- a/inc/confutils.php
+++ b/inc/confutils.php
@@ -50,6 +50,10 @@ function getAcronyms() {
static $acronyms = NULL;
if ( !$acronyms ) {
$acronyms = confToHash(DOKU_INC . 'conf/acronyms.conf');
+ if (@file_exists(DOKU_INC . 'conf/local.acronyms.conf')) {
+ $local = confToHash(DOKU_INC . 'conf/local.acronyms.conf');
+ $acronyms = array_merge($acronyms, $local);
+ }
}
return $acronyms;
}