Browse Source

minor fixes

euromark 11 years ago
parent
commit
7dbe0a3dc6
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Lib/Auth.php
  2. 1 1
      Lib/InlineCssLib.php

+ 1 - 0
Lib/Auth.php

@@ -7,6 +7,7 @@ if (!defined('USER_RIGHT_KEY')) {
 }
 
 App::uses('AuthComponent', 'Controller/Component');
+App::uses('Hash', 'Utility');
 
 /**
  * Convenience wrapper to access Auth data and check on rights/roles.

+ 1 - 1
Lib/InlineCssLib.php

@@ -73,7 +73,7 @@ class InlineCssLib {
 		if ($this->config['cleanup']) {
 			// Remove comments and whitespace
 			$result = preg_replace( '/<!--(.|\s)*?-->/', '', $result);
-			$result = preg_replace( '/\s\s+/', '', $result);
+			//$result = preg_replace( '/\s\s+/', '\s', $result);
 
 			// Result classes and ids
 			$result = preg_replace('/\bclass="[^"]*"/', '', $result);