From b8c2eef9745388d3ab9b082a410f39a4beb021e3 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 14 Oct 2008 16:46:00 +0000 Subject: The word blacklist for filter_string is now loaded on init. git-svn-id: https://code.elgg.org/elgg/trunk@2258 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/social.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/social.php b/engine/lib/social.php index 14328376e..036173dfc 100644 --- a/engine/lib/social.php +++ b/engine/lib/social.php @@ -64,7 +64,8 @@ // Set the shout words blacklist, these do not become tags when the string is converted // Any language packs should include their own! - GLOBAL $CONFIG; + function social_init() { + global $CONFIG; $CONFIG->wordblacklist = array( 'and', 'the', @@ -101,5 +102,8 @@ 'whoever', 'whomever', ); + } + + register_elgg_event_handler("init","system","social_init"); ?> \ No newline at end of file -- cgit v1.2.3