From: Ori Livneh Date: Wed, 18 Sep 2013 03:58:39 +0000 (-0700) Subject: Make CSSMin::getMimeType public rather than protected X-Git-Tag: 1.31.0-rc.0~18746^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=adee3374bfcae58120dd77ba9d7078a0d77b496a;p=lhc%2Fweb%2Fwiklou.git Make CSSMin::getMimeType public rather than protected There's no reason why it should be protected. People sometimes use 'protected' to mean 'ancillary to the main purpose of the class', but 'protected' comes with the added cost of making the class API less flexible. I intend to call this method in a future revision of Id052a04dd2, but I think it should be public regardless. Change-Id: I56365df3152df1180ce73de98202e3a91def1485 --- diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index 8b0e2873f2..17e1258661 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -85,7 +85,7 @@ class CSSMin { * @param $file string * @return bool|string */ - protected static function getMimeType( $file ) { + public static function getMimeType( $file ) { $realpath = realpath( $file ); // Try a couple of different ways to get the mime-type of a file, in order of // preference