From: Aryeh Gregor Date: Fri, 1 Aug 2008 15:09:57 +0000 (+0000) Subject: Convert two more Parser uses, no parser test failures. Any more conversions look... X-Git-Tag: 1.31.0-rc.0~46218 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=efb774b085c7e48c924fd1977f3c8e9435ef8d0b;p=lhc%2Fweb%2Fwiklou.git Convert two more Parser uses, no parser test failures. Any more conversions look like they'll have to get the parser to use arrays for query strings instead of storing them as strings. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 45a5689d0e..9f925d7231 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1758,7 +1758,7 @@ class Parser $skip = $time = false; wfRunHooks( 'BeforeParserMakeImageLinkObj', array( &$this, &$nt, &$skip, &$time ) ); if ( $skip ) { - $link = $sk->makeLinkObj( $nt ); + $link = $sk->link( $nt ); } else { $link = $sk->makeMediaLinkObj( $nt, $text, $time ); } @@ -4507,7 +4507,7 @@ class Parser wfRunHooks( 'BeforeParserMakeImageLinkObj', array( &$this, &$title, &$skip, &$time, &$descQuery ) ); if ( $skip ) { - return $sk->makeLinkObj( $title ); + return $sk->link( $title ); } # Get parameter map