mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Pass 2 parameters to addDeprecation
Change-Id: I891f94d32d64296fdb121d632e94dfba4b09070f
This commit is contained in:
parent
b460db83f0
commit
569006f614
|
@ -20,7 +20,7 @@ class ApiEchoMarkSeen extends ApiBase {
|
|||
$outputTimestamp = wfTimestamp( TS_ISO_8601, $timestamp );
|
||||
} else {
|
||||
// MW
|
||||
$this->addDeprecation( 'apiwarn-echo-deprecation-timestampformat' );
|
||||
$this->addDeprecation( 'apiwarn-echo-deprecation-timestampformat', 'action=echomarkseen×tampFormat=MW' );
|
||||
|
||||
$outputTimestamp = $timestamp;
|
||||
}
|
||||
|
|
|
@ -23,9 +23,9 @@ class ApiEchoNotifications extends ApiCrossWikiBase {
|
|||
|
||||
/* @deprecated */
|
||||
if ( $params['format'] === 'flyout' ) {
|
||||
$this->addDeprecation( 'apiwarn-echo-deprecation-flyout' );
|
||||
$this->addDeprecation( 'apiwarn-echo-deprecation-flyout', 'action=query&meta=notifications¬format=flyout' );
|
||||
} elseif ( $params['format'] === 'html' ) {
|
||||
$this->addDeprecation( 'apiwarn-echo-deprecation-html' );
|
||||
$this->addDeprecation( 'apiwarn-echo-deprecation-html', 'action=query&meta=notifications¬format=html' );
|
||||
}
|
||||
|
||||
if ( $this->allowCrossWikiNotifications() ) {
|
||||
|
|
Loading…
Reference in a new issue