1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-09 15:46:34 +02:00

if no Cache is defined, create Minify_Cache_Null

This commit is contained in:
Elan Ruusamäe
2014-09-21 11:52:29 +03:00
committed by Steve Clay
parent 5193c76581
commit 31a80b43a6

View File

@@ -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() public static function getCache()
{ {
if (!self::$_cache) {
self::$_cache = new Minify_Cache_Null();
}
return self::$_cache; return self::$_cache;
} }
@@ -355,7 +358,7 @@ class Minify {
); );
} }
} }
/** /**
* Return combined minified content for a set of sources * Return combined minified content for a set of sources
* *