diff --git a/lib/cache/sfRawFileCache.class.php b/lib/cache/sfRawFileCache.class.php index e88e1f3..5cdc8b9 100644 --- a/lib/cache/sfRawFileCache.class.php +++ b/lib/cache/sfRawFileCache.class.php @@ -64,7 +64,7 @@ protected function write($path, $data, $timeout) if (!is_dir(dirname($path))) { // create directory structure if needed - mkdir(dirname($path) , 0777, true); + mkdir(dirname($path), 0777, true); } $tmpFile = tempnam(dirname($path) , basename($path)); @@ -144,7 +144,7 @@ protected function getGlobPatterns(sfRoute $route) $paths = array(); for($i=$depth; $i<=$routeOptions['max_folder_depth']; $i++) { - $paths[] = $pathBase.$pathStart.str_repeat('*/', $i - $depth).'*'.$pathEnd;; + $paths[] = $pathBase.$pathStart.str_repeat('*/', $i - $depth).'*'.$pathEnd; } return $paths; } diff --git a/lib/routing/sfImageTransformRoute.class.php b/lib/routing/sfImageTransformRoute.class.php index faef258..fe4a782 100644 --- a/lib/routing/sfImageTransformRoute.class.php +++ b/lib/routing/sfImageTransformRoute.class.php @@ -171,12 +171,12 @@ public function preassemblePattern($params = array()) { $params = $this->convertObjectToArray($params); - if(!$params['sf_format']) + if(!isset($params['sf_format'])) { $params['sf_format'] = '{jpg,gif,png}'; } - if(!$params['format']) + if(!isset($params['format'])) { $params['format'] = '{'.implode(',', array_keys(sfConfig::get('thumbnailing_formats'))).'}'; }