Skip to content

Commit 6fbdf79

Browse files
committed
Fixed getting Drupal site temp folder.
1 parent 319acd5 commit 6fbdf79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drupal-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,10 @@ buffer."
498498
(let* ((root drupal-rootdir)
499499
(tmp (ignore-errors
500500
(replace-regexp-in-string
501-
"[\n\r]" ""
501+
"[\n\r].*" ""
502502
(with-output-to-string
503503
(with-current-buffer standard-output
504-
(call-process drupal-drush-program nil (list t nil) nil (concat "--root=" (expand-file-name root)) "core-status" "temp" "--pipe" "--format=list" "--strict=0"))))))
504+
(call-process drupal-drush-program nil (list t nil) nil "core-status" "--fields=temp" "--pipe" "--format=list" "--strict=0"))))))
505505
(dd (concat tmp "/drupal_debug.txt")))
506506
(when (file-readable-p dd)
507507
(find-file-other-window dd)

0 commit comments

Comments
 (0)