aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-14 11:06:19 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-14 11:06:19 +0000
commit06b1e918d5b47be44536981876ce8a11edfa31e8 (patch)
treed608be79fdaae29a825ec621087bcfaa1ed00513 /engine/lib/elgglib.php
parent79527ef4c43e97060d2412037adcdcb03220a4fa (diff)
downloadelgg-06b1e918d5b47be44536981876ce8a11edfa31e8.tar.gz
elgg-06b1e918d5b47be44536981876ce8a11edfa31e8.tar.bz2
Fixes #2339 - removes social library and deprecates its two functions (put it output.php for lack of a better location)
git-svn-id: http://code.elgg.org/elgg/trunk@7078 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 5b224e0be..675c0143e 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2265,6 +2265,17 @@ function elgg_init() {
// Trigger the shutdown:system event upon PHP shutdown.
register_shutdown_function('__elgg_shutdown_hook');
+
+ // Sets a blacklist of words in the current language.
+ // This is a comma separated list in word:blacklist.
+ // @todo possibly deprecate
+ $CONFIG->wordblacklist = array();
+ $list = explode(',', elgg_echo('word:blacklist'));
+ if ($list) {
+ foreach ($list as $l) {
+ $CONFIG->wordblacklist[] = trim($l);
+ }
+ }
}
/**