break;
// Single strings
case 'position':
- $this->isPositionDefined = true;
case 'group':
case 'skipFunction':
$this->{$member} = (string)$option;
* @return array List of concatenated and remapped CSS data from $styles,
* keyed by media type
*
- * @since 1.26 Calling this method without a ResourceLoaderContext instance
+ * @since 1.27 Calling this method without a ResourceLoaderContext instance
* is deprecated.
*/
public function readStyleFiles( array $styles, $flip, $context = null ) {
if ( $context === null ) {
- wfDeprecated( __METHOD__ . ' without a ResourceLoader context', '1.26' );
+ wfDeprecated( __METHOD__ . ' without a ResourceLoader context', '1.27' );
$context = ResourceLoaderContext::newDummyContext();
}
* Keeps track of all used files and adds them to localFileRefs.
*
* @since 1.22
- * @since 1.26 Added $context paramter.
+ * @since 1.27 Added $context paramter.
* @throws Exception If less.php encounters a parse error
* @param string $fileName File path of LESS source
* @param ResourceLoaderContext $context Context in which to generate script
$vars = $this->getLessVars( $context );
ksort( $vars );
$varsHash = hash( 'md4', serialize( $vars ) );
- $cacheKey = wfGlobalCacheKey( 'LESS', $fileName, $varsHash );
+ $cacheKey = $cache->makeGlobalKey( 'LESS', $fileName, $varsHash );
$cachedCompile = $cache->get( $cacheKey );
// If we got a cached value, we have to validate it by getting a