Censorship.php
changeset 1 bfc5494ee70c
parent 0 d7eb80b3c6f6
child 2 c8e6db42385f
--- a/Censorship.php	Mon Dec 12 22:51:37 2011 -0500
+++ b/Censorship.php	Mon Dec 12 23:12:47 2011 -0500
@@ -14,6 +14,11 @@
 
 function anti_sopa_censor(&$text)
 {
+	// don't censor the stop-sopa page
+	global $db, $session, $paths, $template, $plugins; // Common objects
+	if ( $paths->page_id == 'activism/stop-sopa' && $paths->namespace == 'Article' )
+		return;
+	
 	// save HTML tags
 	$text = preg_split('/(<(?:[a-z\/].+?|!--.+?--)>|<script[^>]*>[\w\W]*?<\/script>)/', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
 	foreach ( $text as &$block )