Compression - Bug

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jun 02, 2012 1:38 pm
Reply with quote
Report this post
Hi,

If compression is enabled in Advanced settings the template blows up..Only tested in Chrome / FF using quickstart...

Dave
User avatar
Expert Boarder

GK User
Sat Jun 02, 2012 9:51 pm
Reply with quote
Report this post
You're right - now all CSS - also tablet.css and mobile.css are compressed into one file without media queries.

To solve it, please change in file: lib/framework/helper.cache.php fragment (in the method useCache):

foreach ($document->_styleSheets as $strSrc => $strAttr) {
if (!preg_match('/\?.{1,}$/', $strSrc)) {

to:

foreach ($document->_styleSheets as $strSrc => $strAttr) {
if (!preg_match('/\?.{1,}$/', $strSrc) && (!isset($strAttr['media']) || $strAttr['media'] == '')) {
User avatar
Administrator

GK User
Sun Jun 03, 2012 2:42 pm
Reply with quote
Report this post
dziudek wrote:You're right - now all CSS - also tablet.css and mobile.css are compressed into one file without media queries.

To solve it, please change in file: lib/framework/helper.cache.php fragment (in the method useCache):

foreach ($document->_styleSheets as $strSrc => $strAttr) {
if (!preg_match('/\?.{1,}$/', $strSrc)) {

to:

foreach ($document->_styleSheets as $strSrc => $strAttr) {
if (!preg_match('/\?.{1,}$/', $strSrc) && (!isset($strAttr['media']) || $strAttr['media'] == '')) {


Thanks...That worked..

Dave
User avatar
Expert Boarder


cron