Rename getSquidURLs() => getCdnUrls()
[lhc/web/wiklou.git] / includes / Title.php
index e2c2143..5d8b072 100644 (file)
@@ -3562,7 +3562,7 @@ class Title {
         *
         * @return string[] Array of String the URLs
         */
-       public function getSquidURLs() {
+       public function getCdnUrls() {
                $urls = array(
                        $this->getInternalURL(),
                        $this->getInternalURL( 'action=history' )
@@ -3587,12 +3587,19 @@ class Title {
                return $urls;
        }
 
+       /**
+        * @deprecated since 1.27 use getCdnUrls()
+        */
+       public function getSquidURLs() {
+               return $this->getCdnUrls();
+       }
+
        /**
         * Purge all applicable CDN URLs
         */
        public function purgeSquid() {
                DeferredUpdates::addUpdate(
-                       new CdnCacheUpdate( $this->getSquidURLs() ),
+                       new CdnCacheUpdate( $this->getCdnUrls() ),
                        DeferredUpdates::PRESEND
                );
        }