Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -4327,7 +4327,7 @@ |
4328 | 4328 | |
4329 | 4329 | function setTransparentTagHook( $tag, $callback ) { |
4330 | 4330 | $tag = strtolower( $tag ); |
4331 | | - if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setHook('$tag', ...) call" ); |
| 4331 | + if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setTransparentHook('$tag', ...) call" ); |
4332 | 4332 | $oldVal = isset( $this->mTransparentTagHooks[$tag] ) ? $this->mTransparentTagHooks[$tag] : null; |
4333 | 4333 | $this->mTransparentTagHooks[$tag] = $callback; |
4334 | 4334 | |
— | — | @@ -4432,7 +4432,7 @@ |
4433 | 4433 | */ |
4434 | 4434 | function setFunctionTagHook( $tag, $callback, $flags ) { |
4435 | 4435 | $tag = strtolower( $tag ); |
4436 | | - if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setHook('$tag', ...) call" ); |
| 4436 | + if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setFunctionTagHook('$tag', ...) call" ); |
4437 | 4437 | $old = isset( $this->mFunctionTagHooks[$tag] ) ? |
4438 | 4438 | $this->mFunctionTagHooks[$tag] : null; |
4439 | 4439 | $this->mFunctionTagHooks[$tag] = array( $callback, $flags ); |