From: Timo Tijhof Date: Fri, 27 Sep 2013 09:32:41 +0000 (+0200) Subject: less: Add '@since 1.22' comments X-Git-Tag: 1.31.0-rc.0~18659 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=e09c4d952d97f0f4bf4bf4b5226620f3e98cfc34;p=lhc%2Fweb%2Fwiklou.git less: Add '@since 1.22' comments Change-Id: I673705423cf7618e207c0ee47b01761d6c89ce5f --- diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index 3b81b11948..23fbf73e24 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -486,6 +486,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { /** * Infer the stylesheet language from a stylesheet file path. * + * @since 1.22 * @param string $path * @return string: the stylesheet language name */ @@ -703,11 +704,13 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { /** * Generate a cache key for a LESS file. + * * The cache key varies on the file name, the names and values of global * LESS variables, and the value of $wgShowExceptionDetails. Varying on * $wgShowExceptionDetails ensures the CSS comment indicating compilation * failure shows the right level of detail. * + * @since 1.22 * @param string $fileName File name of root LESS file. * @return string: Cache key */ @@ -728,6 +731,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { * that were processed. lessphp compares the cached & current mtimes and * recompiles as necessary. * + * @since 1.22 * @param string $fileName File path of LESS source * @return string: CSS source */ diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 1119cdbb08..da47724d0e 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -458,6 +458,7 @@ abstract class ResourceLoaderModule { } /** + * @since 1.22 * @return lessc */ protected static function lessCompiler() { @@ -480,6 +481,7 @@ abstract class ResourceLoaderModule { /** * Get global LESS variables. * + * @since 1.22 * @return array: Map of variable names to string CSS values. */ protected static function getLESSVars() {