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

allow setGroup keys be list of groups comma separated

this allows loading multiple groups on page with
Minify_HTML_Helper::getUri, keeping array method for loading list of
sources

the backend side for handling this in Minify_Controller_MinApp is
already present.
This commit is contained in:
Elan Ruusamäe
2012-12-02 23:20:22 +02:00
parent f680ac83e7
commit 32abbfa328

View File

@@ -103,8 +103,11 @@ class Minify_HTML_Helper {
}
if (is_file($this->groupsConfigFile)) {
$gc = (require $this->groupsConfigFile);
if (isset($gc[$key])) {
$this->_lastModified = self::getLastModified($gc[$key]);
$keys = explode(',', $key);
foreach ($keys as $key) {
if (isset($gc[$key])) {
$this->_lastModified = self::getLastModified($gc[$key], $this->_lastModified);
}
}
}
}