Satisfy code analyzer by ensuring $urls is defined
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Wed, 4 Dec 2013 16:22:01 +0000 (17:22 +0100)
committerParent5446 <tylerromeo@gmail.com>
Wed, 4 Dec 2013 22:30:00 +0000 (22:30 +0000)
Change-Id: I0f399edfca51c8949f0d0ce02c7a84f0890db92f

includes/filerepo/file/LocalFile.php

index 1f9190b..dd8e38a 100644 (file)
@@ -931,8 +931,8 @@ class LocalFile extends File {
                // Delete thumbnails
                $files = $this->getThumbnails();
                // Always purge all files from squid regardless of handler filters
+               $urls = array();
                if ( $wgUseSquid ) {
-                       $urls = array();
                        foreach ( $files as $file ) {
                                $urls[] = $this->getThumbUrl( $file );
                        }