From b9ac8716a5af742f88887fb9c1315b0e01d244a3 Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 22 Jan 2006 02:12:49 +0100 Subject: adds support for wordblock.local.conf darcs-hash:20060122011249-9b6ab-fdd9188322e1dc4441562a905ac481f66b703db2.gz --- inc/confutils.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'inc/confutils.php') diff --git a/inc/confutils.php b/inc/confutils.php index 9432c10d5..cc1d8064a 100644 --- a/inc/confutils.php +++ b/inc/confutils.php @@ -115,6 +115,23 @@ function getInterwiki() { return $wikis; } +/** + * returns array of wordblock patterns + * + */ +function getWordblocks() { + static $wordblocks = NULL; + if ( !$wordblocks ) { + $wordblocks = file(DOKU_CONF.'wordblock.conf'); + if (@file_exists(DOKU_CONF.'wordblock.local.conf')) { + $local = file(DOKU_CONF.'wordblock.local.conf'); + $wordblocks = array_merge($wordblocks, $local); + } + } + return $wordblocks; +} + + /** * Builds a hash from a configfile * -- cgit v1.2.3