dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
3eea79e
)
Merge "SpecialLinkSearch: Use LinkRenderer instead of MediaWikiPageLinkRenderer"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 23 Jun 2016 14:28:01 +0000
(14:28 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 23 Jun 2016 14:28:01 +0000
(14:28 +0000)
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
65dde21
..
26b4bd9
100644
(file)
--- a/
includes/parser/Parser.php
+++ b/
includes/parser/Parser.php
@@
-1470,10
+1470,14
@@
class Parser {
' ' => '',
'x' => 'X',
] );
- $titleObj = SpecialPage::getTitleFor( 'Booksources', $num );
- return '<a href="' .
- htmlspecialchars( $titleObj->getLocalURL() ) .
- "\" class=\"internal mw-magiclink-isbn\">ISBN $isbn</a>";
+ return $this->getLinkRenderer()->makeKnownLink(
+ SpecialPage::getTitleFor( 'Booksources', $num ),
+ "ISBN $isbn",
+ [
+ 'class' => 'internal mw-magiclink-isbn',
+ 'title' => false // suppress title attribute
+ ]
+ );
} else {
return $m[0];
}