Commit 2f3146f0 authored by webchick's avatar webchick

#308434 follow-up by drewish: Small clean-ups to file.inc clean-ups.

parent 161a9970
......@@ -151,8 +151,7 @@ class AggregatorTestCase extends DrupalWebTestCase {
EOF;
$path = file_directory_path() . '/valid-opml.xml';
file_save_data($opml, $path);
return $path;
return file_save_data($opml, $path);
}
/**
......@@ -169,8 +168,7 @@ EOF;
EOF;
$path = file_directory_path() . '/invalid-opml.xml';
file_save_data($opml, $path);
return $path;
return file_save_data($opml, $path);
}
/**
......@@ -192,8 +190,7 @@ EOF;
EOF;
$path = file_directory_path() . '/empty-opml.xml';
file_save_data($opml, $path);
return $path;
return file_save_data($opml, $path);
}
function getRSS091Sample() {
......@@ -226,8 +223,7 @@ EOF;
EOT;
$path = file_directory_path() . '/rss091.xml';
file_save_data($feed, $path);
return $path;
return file_save_data($feed, $path);
}
}
......
......@@ -308,9 +308,9 @@ function color_scheme_form_submit($form, &$form_state) {
foreach ($info['copy'] as $file) {
$base = basename($file);
$source = $paths['source'] . $file;
file_copy($source, $paths['target'] . $base);
$filepath = file_copy($source, $paths['target'] . $base);
$paths['map'][$file] = $base;
$paths['files'][] = $paths['target'] . $base;
$paths['files'][] = $filepath;
}
// Render new images, if image has been provided.
......
......@@ -128,7 +128,7 @@ class FileValidateTest extends DrupalWebTestCase {
}
// Clear out any resizing messages.
# drupal_get_messages();
drupal_get_messages();
}
/**
......
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