http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88799

Revision: 88799
Author:   reedy
Date:     2011-05-25 16:14:59 +0000 (Wed, 25 May 2011)
Log Message:
-----------
Fix undefined variable from r39635

Modified Paths:
--------------
    trunk/phase3/includes/parser/Parser_LinkHooks.php

Modified: trunk/phase3/includes/parser/Parser_LinkHooks.php
===================================================================
--- trunk/phase3/includes/parser/Parser_LinkHooks.php   2011-05-25 15:59:30 UTC 
(rev 88798)
+++ trunk/phase3/includes/parser/Parser_LinkHooks.php   2011-05-25 16:14:59 UTC 
(rev 88799)
@@ -227,7 +227,7 @@
                wfProfileOut( __METHOD__."-misc" );
                # Make title object
                wfProfileIn( __METHOD__."-title" );
-               $title = Title::newFromText( 
$this->mStripState->unstripNoWiki($titleText) );
+               $title = Title::newFromText( $this->mStripState->unstripNoWiki( 
$titleText ) );
                if( !$title ) {
                        wfProfileOut( __METHOD__."-title" );
                        wfProfileOut( __METHOD__ );
@@ -239,7 +239,7 @@
                # Default for Namespaces is a default link
                # ToDo: Default for patterns is plain wikitext
                $return = true;
-               if( isset($this->mLinkHooks[$ns]) ) {
+               if( isset( $this->mLinkHooks[$ns] ) ) {
                        list( $callback, $flags ) = $this->mLinkHooks[$ns];
                        if( $flags & SLH_PATTERN ) {
                                $args = array( $parser, $holders, $markers, 
$titleText, &$paramText, &$leadingColon );
@@ -248,7 +248,7 @@
                        }
                        # Workaround for PHP bug 35229 and similar
                        if ( !is_callable( $callback ) ) {
-                               throw new MWException( "Tag hook for $name is 
not callable\n" );
+                               throw new MWException( "Tag hook for namespace 
$ns is not callable\n" );
                        }
                        $return = call_user_func_array( $callback, $args );
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to