Przeglądaj źródła

Moved cache trimming to location where it actually works...

Taddeus Kroes 14 lat temu
rodzic
commit
1960d97e82
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      pquery.cache.php
  2. 1 1
      pquery.js.php

+ 1 - 1
pquery.cache.php

@@ -84,7 +84,7 @@ class pQueryCache extends pQuery implements pQueryExtension {
 	 * 
 	 */
 	function concatenate() {
-		$this->content = trim(implode("\n", array_map('file_get_contents', $this->files)));
+		$this->content = implode("\n", array_map('file_get_contents', $this->files));
 		
 		return $this;
 	}

+ 1 - 1
pquery.js.php

@@ -40,7 +40,7 @@ class pQueryJs extends pQueryCache implements pQueryExtension {
 	 * 
 	 */
 	function minify() {
-		$this->content = JShrink::minify($this->content, array('flaggedComments' => false));
+		$this->content = trim(JShrink::minify($this->content, array('flaggedComments' => false)));
 		
 		return $this;
 	}