r34291 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34290‎ | r34291 | r34292 >
Date:02:01, 6 May 2008
Author:tstarling
Status:old
Tags:
Comment:
Downgrading this error because it happens sometimes due to user input
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -3249,7 +3249,8 @@
32503250 $output = call_user_func_array( $this->mTagHooks[$name],
32513251 array( $content, $attributes, $this ) );
32523252 } else {
3253 - throw new MWException( "Invalid call hook $name" );
 3253+ $output = '<span class="error">Invalid tag extension name: ' .
 3254+ htmlspecialchars( $name ) . '</span>';
32543255 }
32553256 }
32563257 } else {

Status & tagging log