Followup r104033, explicitly define the array
authorSam Reed <reedy@users.mediawiki.org>
Thu, 24 Nov 2011 16:28:19 +0000 (16:28 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 24 Nov 2011 16:28:19 +0000 (16:28 +0000)
includes/specials/SpecialLinkSearch.php

index 6ef3807..d3ab2f0 100644 (file)
@@ -55,6 +55,7 @@ class LinkSearchPage extends QueryPage {
                $target = $request->getVal( 'target', $par );
                $namespace = $request->getIntorNull( 'namespace', null );
 
+               $protocols_list = array();
                foreach( $wgUrlProtocols as $prot ) {
                        if ( $prot !== '//' ) {
                                $protocols_list[] = $prot;