From 06b1e918d5b47be44536981876ce8a11edfa31e8 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 14 Oct 2010 11:06:19 +0000 Subject: 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 --- engine/lib/elgglib.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engine/lib/elgglib.php') 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); + } + } } /** -- cgit v1.2.3