1 From 32abbfa328dcccf785452dd9cd032f224e378645 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen@delfi.ee>
3 Date: Sun, 2 Dec 2012 23:20:22 +0200
4 Subject: [PATCH] allow setGroup keys be list of groups comma separated
6 this allows loading multiple groups on page with
7 Minify_HTML_Helper::getUri, keeping array method for loading list of
10 the backend side for handling this in Minify_Controller_MinApp is
13 min/lib/Minify/HTML/Helper.php | 7 +++++--
14 1 file changed, 5 insertions(+), 2 deletions(-)
16 diff --git a/min/lib/Minify/HTML/Helper.php b/min/lib/Minify/HTML/Helper.php
17 index 807fdc9..64afc03 100644
18 --- a/min/lib/Minify/HTML/Helper.php
19 +++ b/min/lib/Minify/HTML/Helper.php
20 @@ -103,8 +103,11 @@ public function setGroup($key, $checkLastModified = true)
22 if (is_file($this->groupsConfigFile)) {
23 $gc = (require $this->groupsConfigFile);
24 - if (isset($gc[$key])) {
25 - $this->_lastModified = self::getLastModified($gc[$key]);
26 + $keys = explode(',', $key);
27 + foreach ($keys as $key) {
28 + if (isset($gc[$key])) {
29 + $this->_lastModified = self::getLastModified($gc[$key], $this->_lastModified);