OutputPage: Hard-deprecate setSquidMaxage, renamed since 1.27
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 2 Nov 2017 18:48:15 +0000 (11:48 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 2 Nov 2017 18:51:58 +0000 (11:51 -0700)
Renamed and deprecated in MediaWiki in f606fd8d since 1.27.

Only six uses in Wikimedia-hosted git repositories, marked as
dependencies. Also one use snuck back into MediaWiki itself,
fixed in this patch.

Depends-On: Ie8c13a6b1dc1b7861f6c27bbba996099375f066b
Depends-On: Ic2ea90343efda6533c06ca1325bc85d9aa776078
Depends-On: Ibba2f486f0ecb684ded7efb09f9942f5e0f5fd7a
Depends-On: Id27a48e10fd127e00f68e1020e8f40e30ba9a251
Depends-On: Ifd6db7910a71bb700484d6b588327424f11c00e0
Depends-On: I6523059941eb5f86274e364a8d5cc74b849655a4
Change-Id: I2cdfcd60fc7934830e3e6ec132958aa2aa1fe486

includes/MediaWiki.php
includes/OutputPage.php

index 43de4ba..9e3bc10 100644 (file)
@@ -367,7 +367,7 @@ class MediaWiki {
                        }
                        throw new HttpError( 500, $message );
                }
                        }
                        throw new HttpError( 500, $message );
                }
-               $output->setSquidMaxage( 1200 );
+               $output->setCdnMaxage( 1200 );
                $output->redirect( $targetUrl, '301' );
                return true;
        }
                $output->redirect( $targetUrl, '301' );
                return true;
        }
index 500be8d..4635f99 100644 (file)
@@ -1976,6 +1976,7 @@ class OutputPage extends ContextSource {
         * @deprecated since 1.27 Use setCdnMaxage() instead
         */
        public function setSquidMaxage( $maxage ) {
         * @deprecated since 1.27 Use setCdnMaxage() instead
         */
        public function setSquidMaxage( $maxage ) {
+               wfDeprecated( __METHOD__, '1.27' );
                $this->setCdnMaxage( $maxage );
        }
 
                $this->setCdnMaxage( $maxage );
        }