From: Reedy Date: Sun, 13 Dec 2015 22:52:36 +0000 (+0000) Subject: Remove gen from RawAction. X-Git-Tag: 1.31.0-rc.0~8601^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=697c42325986c320d95385c51c9930215793c3a0;p=lhc%2Fweb%2Fwiklou.git Remove gen from RawAction. Deprecated in 1.17 Change-Id: I4e8e77c11d178725e1d969f869aef1dbf48af490 --- diff --git a/includes/actions/RawAction.php b/includes/actions/RawAction.php index 6de95a09e3..69cd7aa1bd 100644 --- a/includes/actions/RawAction.php +++ b/includes/actions/RawAction.php @@ -33,14 +33,6 @@ * @ingroup Actions */ class RawAction extends FormlessAction { - /** - * Whether the request includes a 'gen' parameter - * @var bool - * @deprecated since 1.17 This used to be a string for "css" or "javascript" but - * it is no longer used. Setting this parameter results in an empty response. - */ - private $gen = false; - public function getName() { return 'raw'; } @@ -77,9 +69,7 @@ class RawAction extends FormlessAction { $maxage = $request->getInt( 'maxage', $config->get( 'SquidMaxage' ) ); $smaxage = $request->getIntOrNull( 'smaxage' ); if ( $smaxage === null ) { - if ( $this->gen ) { - $smaxage = $config->get( 'SquidMaxage' ); - } elseif ( $contentType == 'text/css' || $contentType == 'text/javascript' ) { + if ( $contentType == 'text/css' || $contentType == 'text/javascript' ) { // CSS/JS raw content has its own CDN max age configuration. // Note: Title::getCdnUrls() includes action=raw for css/js pages, // so if using the canonical url, this will get HTCP purges. @@ -127,11 +117,6 @@ class RawAction extends FormlessAction { public function getRawText() { global $wgParser; - # No longer used - if ( $this->gen ) { - return ''; - } - $text = false; $title = $this->getTitle(); $request = $this->getRequest();