mirror of
https://github.com/mrclay/minify.git
synced 2025-08-08 15:16:56 +02:00
if no Cache is defined, create Minify_Cache_Null
This commit is contained in:
committed by
Steve Clay
parent
5193c76581
commit
31a80b43a6
@@ -87,12 +87,15 @@ class Minify {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Minify cache
|
||||
* Get Minify cache, if no Cache is defined, create Minify_Cache_Null
|
||||
*
|
||||
* @return Minify_Cache_Abstract|null
|
||||
* @return Minify_Cache_Abstract
|
||||
*/
|
||||
public static function getCache()
|
||||
{
|
||||
if (!self::$_cache) {
|
||||
self::$_cache = new Minify_Cache_Null();
|
||||
}
|
||||
return self::$_cache;
|
||||
}
|
||||
|
||||
@@ -355,7 +358,7 @@ class Minify {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return combined minified content for a set of sources
|
||||
*
|
||||
|
Reference in New Issue
Block a user