Commit becb6ca3 authored by jonathan1055's avatar jonathan1055 Committed by pcambra
Browse files

Issue #2202887 by jonathan1055: For drupal_debug.txt use file_directory_temp() not 'temporary://'.

parent d2abe2e2
......@@ -1789,7 +1789,7 @@ function drupal_debug($data, $label = NULL) {
$out = ($label ? $label . ': ' : '') . print_r($data, TRUE) . "\n";
// The temp directory does vary across multiple simpletest instances.
$file = 'temporary://drupal_debug.txt';
$file = file_directory_temp() . '/drupal_debug.txt';
if (file_put_contents($file, $out, FILE_APPEND) === FALSE) {
drupal_set_message(t('Devel was unable to write to %file.', array('%file' => $file)), 'error');
return FALSE;
......
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