From d2ee49cef0fd47388b8a1ac8cb259dac5fb8c670 Mon Sep 17 00:00:00 2001 From: Steven Danz Date: Tue, 28 Jun 2005 04:36:28 +0200 Subject: 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 --- inc/confutils.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc/confutils.php') 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; } -- cgit v1.2.3