]> git.pld-linux.org Git - packages/minify.git/blob - 32abbfa328dcccf785452dd9cd032f224e378645.patch
3776b6e0e5b55e1b731f45b2171d01f572f84f9f
[packages/minify.git] / 32abbfa328dcccf785452dd9cd032f224e378645.patch
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
5
6 this allows loading multiple groups on page with
7 Minify_HTML_Helper::getUri, keeping array method for loading list of
8 sources
9
10 the backend side for handling this in Minify_Controller_MinApp is
11 already present.
12 ---
13  min/lib/Minify/HTML/Helper.php |    7 +++++--
14  1 file changed, 5 insertions(+), 2 deletions(-)
15
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)
21              }
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);
30 +                    }
31                  }
32              }
33          }
34 -- 
35 1.7.10
36
This page took 0.643234 seconds and 2 git commands to generate.