Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix php warning #10

Merged
merged 2 commits into from

2 participants

@gimler

No description provided.

@caefer caefer merged commit a09bcfc into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 6, 2011
  1. @gimler

    fix php warning

    gimler authored
  2. @gimler

    coding style

    gimler authored
This page is out of date. Refresh to see the latest.
View
4 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;
}
View
4 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'))).'}';
}
Something went wrong with that request. Please try again.