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:
@@ -103,8 +103,11 @@ class Minify_HTML_Helper {
|
|||||||
}
|
}
|
||||||
if (is_file($this->groupsConfigFile)) {
|
if (is_file($this->groupsConfigFile)) {
|
||||||
$gc = (require $this->groupsConfigFile);
|
$gc = (require $this->groupsConfigFile);
|
||||||
|
$keys = explode(',', $key);
|
||||||
|
foreach ($keys as $key) {
|
||||||
if (isset($gc[$key])) {
|
if (isset($gc[$key])) {
|
||||||
$this->_lastModified = self::getLastModified($gc[$key]);
|
$this->_lastModified = self::getLastModified($gc[$key], $this->_lastModified);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user