Satisfy code analyzer by ensuring $urls is defined

Change-Id: I0f399edfca51c8949f0d0ce02c7a84f0890db92f
This commit is contained in:
Siebrand Mazeland 2013-12-04 17:22:01 +01:00 committed by Parent5446
parent b283817e32
commit 43605121f8

View 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 );
}