From: Tim Starling Date: Tue, 18 Nov 2008 05:58:24 +0000 (+0000) Subject: Mark the functions I just accessed from outside the class as explicitly "public" X-Git-Tag: 1.31.0-rc.0~44288 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=a46e9ef9ce09997548ceb3a4085ed312f4db99fa;p=lhc%2Fweb%2Fwiklou.git Mark the functions I just accessed from outside the class as explicitly "public" --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index c87c485204..303ff6916b 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -1277,7 +1277,7 @@ wgUploadAutoFill = {$autofill}; * * @return array */ - function splitExtensions( $filename ) { + public function splitExtensions( $filename ) { $bits = explode( '.', $filename ); $basename = array_shift( $bits ); return array( $basename, $bits ); @@ -1303,7 +1303,7 @@ wgUploadAutoFill = {$autofill}; * @param array $list * @return bool */ - function checkFileExtensionList( $ext, $list ) { + public function checkFileExtensionList( $ext, $list ) { foreach( $ext as $e ) { if( in_array( strtolower( $e ), $list ) ) { return true;