Index: trunk/phase3/includes/parser/Parser_LinkHooks.php |
— | — | @@ -227,7 +227,7 @@ |
228 | 228 | wfProfileOut( __METHOD__."-misc" ); |
229 | 229 | # Make title object |
230 | 230 | wfProfileIn( __METHOD__."-title" ); |
231 | | - $title = Title::newFromText( $this->mStripState->unstripNoWiki($titleText) ); |
| 231 | + $title = Title::newFromText( $this->mStripState->unstripNoWiki( $titleText ) ); |
232 | 232 | if( !$title ) { |
233 | 233 | wfProfileOut( __METHOD__."-title" ); |
234 | 234 | wfProfileOut( __METHOD__ ); |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | # Default for Namespaces is a default link |
241 | 241 | # ToDo: Default for patterns is plain wikitext |
242 | 242 | $return = true; |
243 | | - if( isset($this->mLinkHooks[$ns]) ) { |
| 243 | + if( isset( $this->mLinkHooks[$ns] ) ) { |
244 | 244 | list( $callback, $flags ) = $this->mLinkHooks[$ns]; |
245 | 245 | if( $flags & SLH_PATTERN ) { |
246 | 246 | $args = array( $parser, $holders, $markers, $titleText, &$paramText, &$leadingColon ); |
— | — | @@ -248,7 +248,7 @@ |
249 | 249 | } |
250 | 250 | # Workaround for PHP bug 35229 and similar |
251 | 251 | if ( !is_callable( $callback ) ) { |
252 | | - throw new MWException( "Tag hook for $name is not callable\n" ); |
| 252 | + throw new MWException( "Tag hook for namespace $ns is not callable\n" ); |
253 | 253 | } |
254 | 254 | $return = call_user_func_array( $callback, $args ); |
255 | 255 | } |