From: Roan Kattouw Date: Sat, 20 Aug 2011 10:25:38 +0000 (+0000) Subject: Fix serious bug in r90849 that didn't show up in the tests until I restructured the... X-Git-Tag: 1.31.0-rc.0~28149 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=e2e14cd74b6f4f09edf9bd9746f7a6d949533ed2;p=lhc%2Fweb%2Fwiklou.git Fix serious bug in r90849 that didn't show up in the tests until I restructured the code a bit and the tests started to actually hit it: $url is undefined, use $href --- diff --git a/includes/Skin.php b/includes/Skin.php index e1b24fae93..52e6ff1bd7 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1156,7 +1156,7 @@ abstract class Skin extends ContextSource { // Parser::getExternalLinkAttribs won't work here because of the Namespace things global $wgNoFollowLinks, $wgNoFollowDomainExceptions; - if ( $wgNoFollowLinks && !wfMatchesDomainList( $url, $wgNoFollowDomainExceptions ) ) { + if ( $wgNoFollowLinks && !wfMatchesDomainList( $href, $wgNoFollowDomainExceptions ) ) { $extraAttribs['rel'] = 'nofollow'; }