dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Browser tests: update to mw-selenium 1.7.2 and https"
[lhc/web/wiklou.git]
/
includes
/
DummyLinker.php
diff --git
a/includes/DummyLinker.php
b/includes/DummyLinker.php
index
45535ce
..
ba24799
100644
(file)
--- a/
includes/DummyLinker.php
+++ b/
includes/DummyLinker.php
@@
-47,16
+47,20
@@
class DummyLinker {
);
}
);
}
+ /**
+ * @deprecated since 1.28, use LinkRenderer::getLinkClasses() instead
+ */
public function getLinkColour( $t, $threshold ) {
public function getLinkColour( $t, $threshold ) {
+ wfDeprecated( __METHOD__, '1.28' );
return Linker::getLinkColour( $t, $threshold );
}
public function link(
$target,
$html = null,
return Linker::getLinkColour( $t, $threshold );
}
public function link(
$target,
$html = null,
- $customAttribs = [
],
- $query = [
],
- $options = [
]
+ $customAttribs = [],
+ $query = [],
+ $options = []
) {
return Linker::link(
$target,
) {
return Linker::link(
$target,
@@
-70,9
+74,9
@@
class DummyLinker {
public function linkKnown(
$target,
$html = null,
public function linkKnown(
$target,
$html = null,
- $customAttribs = [
],
- $query = [
],
- $options = [ 'known'
, 'noclasses'
]
+ $customAttribs = [],
+ $query = [],
+ $options = [ 'known' ]
) {
return Linker::linkKnown(
$target,
) {
return Linker::linkKnown(
$target,
@@
-123,8
+127,8
@@
class DummyLinker {
Parser $parser,
Title $title,
$file,
Parser $parser,
Title $title,
$file,
- $frameParams = [
],
- $handlerParams = [
],
+ $frameParams = [],
+ $handlerParams = [],
$time = false,
$query = "",
$widthOption = null
$time = false,
$query = "",
$widthOption = null
@@
-147,7
+151,7
@@
class DummyLinker {
$label = '',
$alt,
$align = 'right',
$label = '',
$alt,
$align = 'right',
- $params = [
],
+ $params = [],
$framed = false,
$manualthumb = ""
) {
$framed = false,
$manualthumb = ""
) {
@@
-166,8
+170,8
@@
class DummyLinker {
public function makeThumbLink2(
Title $title,
$file,
public function makeThumbLink2(
Title $title,
$file,
- $frameParams = [
],
- $handlerParams = [
],
+ $frameParams = [],
+ $handlerParams = [],
$time = false,
$query = ""
) {
$time = false,
$query = ""
) {
@@
-232,7
+236,7
@@
class DummyLinker {
$text,
$escape = true,
$linktype = '',
$text,
$escape = true,
$linktype = '',
- $attribs = [
],
+ $attribs = [],
$title = null
) {
return Linker::makeExternalLink(
$title = null
) {
return Linker::makeExternalLink(
@@
-329,7
+333,7
@@
class DummyLinker {
Title $title,
$text,
$wikiId = null,
Title $title,
$text,
$wikiId = null,
- $options = [
]
+ $options = []
) {
return Linker::makeCommentLink(
$title,
) {
return Linker::makeCommentLink(
$title,
@@
-471,7
+475,7
@@
class DummyLinker {
return Linker::formatSize( $size );
}
return Linker::formatSize( $size );
}
- public function titleAttrib( $name, $options = null, array $msgParams = [
] ) {
+ public function titleAttrib( $name, $options = null, array $msgParams = [] ) {
return Linker::titleAttrib(
$name,
$options,
return Linker::titleAttrib(
$name,
$options,
@@
-491,7
+495,7
@@
class DummyLinker {
);
}
);
}
- public function revDeleteLink( $query = [
], $restricted = false, $delete = true ) {
+ public function revDeleteLink( $query = [], $restricted = false, $delete = true ) {
return Linker::revDeleteLink(
$query,
$restricted,
return Linker::revDeleteLink(
$query,
$restricted,
@@
-503,7
+507,7
@@
class DummyLinker {
return Linker::revDeleteLinkDisabled( $delete );
}
return Linker::revDeleteLinkDisabled( $delete );
}
- public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [
] ) {
+ public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [] ) {
return Linker::tooltipAndAccesskeyAttribs(
$name,
$msgParams
return Linker::tooltipAndAccesskeyAttribs(
$name,
$msgParams