Hoo man has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/262935

Change subject: Replace usage of deprecated OutputPage::setSquidMaxage
......................................................................

Replace usage of deprecated OutputPage::setSquidMaxage

The new OutputPage::setCdnMaxage does exactly the same.

Change-Id: I587972094e5687672345057345019388f2748e2b
---
M repo/includes/specials/SpecialListProperties.php
M repo/includes/specials/SpecialWikibaseQueryPage.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/35/262935/1

diff --git a/repo/includes/specials/SpecialListProperties.php 
b/repo/includes/specials/SpecialListProperties.php
index cd77797..5773c86 100644
--- a/repo/includes/specials/SpecialListProperties.php
+++ b/repo/includes/specials/SpecialListProperties.php
@@ -121,7 +121,7 @@
                parent::execute( $subPage );
 
                $output = $this->getOutput();
-               $output->setSquidMaxage( static::CACHE_TTL_IN_SECONDS );
+               $output->setCdnMaxage( static::CACHE_TTL_IN_SECONDS );
 
                $this->prepareArguments( $subPage );
                $this->showForm();
diff --git a/repo/includes/specials/SpecialWikibaseQueryPage.php 
b/repo/includes/specials/SpecialWikibaseQueryPage.php
index b8c19c4..333129a 100644
--- a/repo/includes/specials/SpecialWikibaseQueryPage.php
+++ b/repo/includes/specials/SpecialWikibaseQueryPage.php
@@ -84,7 +84,7 @@
                parent::execute( $subPage );
 
                $output = $this->getOutput();
-               $output->setSquidMaxage( static::CACHE_TTL_IN_SECONDS );
+               $output->setCdnMaxage( static::CACHE_TTL_IN_SECONDS );
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/262935
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I587972094e5687672345057345019388f2748e2b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to