Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3249,7 +3249,8 @@ |
3250 | 3250 | $output = call_user_func_array( $this->mTagHooks[$name], |
3251 | 3251 | array( $content, $attributes, $this ) ); |
3252 | 3252 | } else { |
3253 | | - throw new MWException( "Invalid call hook $name" ); |
| 3253 | + $output = '<span class="error">Invalid tag extension name: ' . |
| 3254 | + htmlspecialchars( $name ) . '</span>'; |
3254 | 3255 | } |
3255 | 3256 | } |
3256 | 3257 | } else { |