Pass 2 parameters to addDeprecation

Change-Id: I891f94d32d64296fdb121d632e94dfba4b09070f
This commit is contained in:
Reedy 2017-01-05 22:06:26 +00:00
parent b460db83f0
commit 569006f614
2 changed files with 3 additions and 3 deletions

View file

@ -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&timestampFormat=MW' );
$outputTimestamp = $timestamp;
}

View file

@ -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&notformat=flyout' );
} elseif ( $params['format'] === 'html' ) {
$this->addDeprecation( 'apiwarn-echo-deprecation-html' );
$this->addDeprecation( 'apiwarn-echo-deprecation-html', 'action=query&meta=notifications&notformat=html' );
}
if ( $this->allowCrossWikiNotifications() ) {