summaryrefslogtreecommitdiff
path: root/inc/confutils.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-01-22 02:12:49 +0100
committerchris <chris@jalakai.co.uk>2006-01-22 02:12:49 +0100
commitb9ac8716a5af742f88887fb9c1315b0e01d244a3 (patch)
tree033c9ac38ede329565a598bbcb9a1a12edfea4b6 /inc/confutils.php
parentfd7c2db0d17e5b53981fef40fe9e3eca46b34038 (diff)
downloadrpg-b9ac8716a5af742f88887fb9c1315b0e01d244a3.tar.gz
rpg-b9ac8716a5af742f88887fb9c1315b0e01d244a3.tar.bz2
adds support for wordblock.local.conf
darcs-hash:20060122011249-9b6ab-fdd9188322e1dc4441562a905ac481f66b703db2.gz
Diffstat (limited to 'inc/confutils.php')
-rw-r--r--inc/confutils.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/confutils.php b/inc/confutils.php
index 9432c10d5..cc1d8064a 100644
--- a/inc/confutils.php
+++ b/inc/confutils.php
@@ -116,6 +116,23 @@ function getInterwiki() {
}
/**
+ * 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
*
* If $lower is set to true all hash keys are converted to