Downgrading this error because it happens sometimes due to user input
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 6 May 2008 02:01:24 +0000 (02:01 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 6 May 2008 02:01:24 +0000 (02:01 +0000)
includes/Parser.php

index a5162d6..3e309be 100644 (file)
@@ -3249,7 +3249,8 @@ class Parser
                                                $output = call_user_func_array( $this->mTagHooks[$name],
                                                        array( $content, $attributes, $this ) );
                                        } else {
-                                               throw new MWException( "Invalid call hook $name" );
+                                               $output = '<span class="error">Invalid tag extension name: ' .
+                                                       htmlspecialchars( $name ) . '</span>';
                                        }
                        }
                } else {