Browse files

fixes to compressors

  • Loading branch information...
1 parent 343dc6c commit 150aa17e3abf0e9d8e4b3ba792daaa11ed10f4c6 @kaviththiranga committed Jul 29, 2012
Showing with 6 additions and 1 deletion.
  1. +3 −0 libraries/joomla/media/compressor/css.php
  2. +3 −1 libraries/joomla/media/compressor/js.php
View
3 libraries/joomla/media/compressor/css.php
@@ -80,7 +80,10 @@ public function compress()
}
$this->_compressed = preg_replace('/:first-l(etter|ine)\\{/', ':first-l$1 {', $this->_compressed);
+
+ $this->_compressed = trim($this->_compressed);
+ $this->_compressedSize = strlen($this->_compressed);
}
/**
View
4 libraries/joomla/media/compressor/js.php
@@ -150,7 +150,9 @@ public function compress()
{
mb_internal_encoding($encoding);
}
-
+
+ $this->_compressed = trim($this->_compressed);
+ $this->_compressedSize = strlen($this->_compressed);
}
/**

0 comments on commit 150aa17

Please sign in to comment.