diff -r 23959360dcfd -r 8a4b75e73137 includes/wikiformat.php --- a/includes/wikiformat.php Thu Jul 02 08:58:54 2009 -0400 +++ b/includes/wikiformat.php Thu Jul 02 09:00:52 2009 -0400 @@ -291,6 +291,25 @@ } /** + * Disable a render stage + * @param string stage + * @return null + */ + + public function disable_rule($rule) + { + foreach ( $this->rules as $i => $current_rule ) + { + if ( $current_rule === $rule ) + { + unset($this->rules[$i]); + return null; + } + } + return null; + } + + /** * Generate a token * @param int Token index * @return string