Skip to content

Commit 3e8644d

Browse files
committed
Show file not writable message if editor can't save html because of file permissions
1 parent 602a14a commit 3e8644d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

admin/controller/editor/editor.php

+4
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,10 @@ function save() {
583583
if (file_put_contents($fileName, $content)) {
584584
$success = true;
585585
$text .= __('File saved!');
586+
} else {
587+
if (!is_writable($fileName)) {
588+
$text .= sprintf(__('%s is not writable!'), $fileName);
589+
}
586590
}
587591

588592
$cssFile = DS . 'css' . DS . 'custom.css';

0 commit comments

Comments
 (0)