Jdlrobson has submitted this change and it was merged.
Change subject: Rm warning on place of old API
......................................................................
Rm warning on place of old API
Change-Id: I2013588863a6b68133769a0bff3aea74a97c9fc9
---
M includes/MobileFrontend.body.php
1 file changed, 0 insertions(+), 15 deletions(-)
Approvals:
Jdlrobson: Verified; Looks good to me, approved
diff --git a/includes/MobileFrontend.body.php b/includes/MobileFrontend.body.php
index 5f50dba..fefe28f 100644
--- a/includes/MobileFrontend.body.php
+++ b/includes/MobileFrontend.body.php
@@ -169,21 +169,6 @@
$contentHtml = $formatter->getText();
wfProfileOut( __METHOD__ . '-getText' );
- if ( $this->getRequest()->getText( 'format' ) === 'json' ) {
- # There used to be an antiquated API
- # @todo: Remove in March 2013
- wfProfileIn( __METHOD__ . '-json' );
- wfDebugLog( 'json-hack',
$this->getRequest()->getHeader( 'User-Agent' ) . "\n" );
- $this->getRequest()->response()->header( 'HTTP/1.1 404
Not Found' );
- $t = SpecialPage::getTitleFor( 'ApiSandbox' );
- $url = htmlentities( $t->getFullURL() );
- # Was used only on English Wikipedia, so assuming that
ApiSandbox is present
- echo "<html><head><title>Not
Found</title></head><body><h1>HTTP 404 Not Found</h1>This API has been
deprecated.
- Use <a href='$url#action=mobileview'>our normal
API</a>.</body></html>";
- $contentHtml = false;
- wfProfileOut( __METHOD__ . '-json' );
- }
-
wfProfileOut( __METHOD__ );
return $contentHtml;
}
--
To view, visit https://gerrit.wikimedia.org/r/55229
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2013588863a6b68133769a0bff3aea74a97c9fc9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits