Reedy has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/330738 )
Change subject: Pass 2 parameters to addDeprecation
......................................................................
Pass 2 parameters to addDeprecation
Change-Id: I891f94d32d64296fdb121d632e94dfba4b09070f
---
M includes/api/ApiEchoMarkSeen.php
M includes/api/ApiEchoNotifications.php
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/38/330738/1
diff --git a/includes/api/ApiEchoMarkSeen.php b/includes/api/ApiEchoMarkSeen.php
index c122757..d06852a 100644
--- a/includes/api/ApiEchoMarkSeen.php
+++ b/includes/api/ApiEchoMarkSeen.php
@@ -20,7 +20,7 @@
$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;
}
diff --git a/includes/api/ApiEchoNotifications.php
b/includes/api/ApiEchoNotifications.php
index cd9d37c..c4352c9 100644
--- a/includes/api/ApiEchoNotifications.php
+++ b/includes/api/ApiEchoNotifications.php
@@ -23,9 +23,9 @@
/* @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() ) {
--
To view, visit https://gerrit.wikimedia.org/r/330738
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I891f94d32d64296fdb121d632e94dfba4b09070f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits