summaryrefslogtreecommitdiff
path: root/inc/confutils.php
diff options
context:
space:
mode:
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