Merge "Remove unused $wgLicenseTerms"
[lhc/web/wiklou.git] / includes / filerepo / file / LocalFile.php
index 687c549..cfa26b0 100644 (file)
@@ -903,12 +903,13 @@ class LocalFile extends File {
 
                // Get a list of old thumbnails and URLs
                $files = $this->getThumbnails( $archiveName );
-               $dir = array_shift( $files );
-               $this->purgeThumbList( $dir, $files );
 
                // Purge any custom thumbnail caches
                wfRunHooks( 'LocalFilePurgeThumbnails', array( $this, $archiveName ) );
 
+               $dir = array_shift( $files );
+               $this->purgeThumbList( $dir, $files );
+
                // Purge the squid
                if ( $wgUseSquid ) {
                        $urls = array();
@@ -947,12 +948,12 @@ class LocalFile extends File {
                        }
                }
 
-               $dir = array_shift( $files );
-               $this->purgeThumbList( $dir, $files );
-
                // Purge any custom thumbnail caches
                wfRunHooks( 'LocalFilePurgeThumbnails', array( $this, false ) );
 
+               $dir = array_shift( $files );
+               $this->purgeThumbList( $dir, $files );
+
                // Purge the squid
                if ( $wgUseSquid ) {
                        SquidUpdate::purge( $urls );
@@ -2249,10 +2250,10 @@ class LocalFileRestoreBatch {
        /** @var array List of file IDs to restore */
        private $ids;
 
-       /** @var bool Add all revisions of the file  */
+       /** @var bool Add all revisions of the file */
        private $all;
 
-       /** @var bool Wether to remove all settings for suppressed fields  */
+       /** @var bool Wether to remove all settings for suppressed fields */
        private $unsuppress = false;
 
        /**
@@ -2620,16 +2621,12 @@ class LocalFileMoveBatch {
        /** @var Title */
        protected $target;
 
-       /** @var   */
        protected $cur;
 
-       /** @var   */
        protected $olds;
 
-       /** @var   */
        protected $oldCount;
 
-       /** @var   */
        protected $archive;
 
        /** @var DatabaseBase */