Commit eb926479 authored by Philip_Clarke's avatar Philip_Clarke Committed by bgm

Minor code format fixes.

parent 84e38486
......@@ -503,7 +503,7 @@ function boost_parse_url($url = NULL, $b_path = NULL) {
if (!isset($parts['query'])) {
$parts['query'] = '';
}
$parts['path'] = $parts['full_path'] = urldecode(preg_replace('/^' . preg_quote($b_path, '/') .'/i', '', $parts['path']));
$parts['path'] = $parts['full_path'] = urldecode(preg_replace('/^' . preg_quote($b_path, '/') . '/i', '', $parts['path']));
$parts['base_path'] = $b_path;
$parts['query_array'] = array();
parse_str($parts['query'], $parts['query_array']);
......@@ -1299,7 +1299,7 @@ function boost_write_file($filename, $data) {
// Move temp file to real filename; windows can not do a rename replace.
if (@rename($tempname, $filename) === FALSE) {
$oldname = $tempname. 'old';
$oldname = $tempname . 'old';
if (@rename($filename, $oldname) !== FALSE) {
if (@rename($tempname, $filename) === FALSE) {
watchdog('boost', 'Could not rename the file %file on your system', array('%file' => $filename), WATCHDOG_ERROR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment