]> git.mjollnir.org Git - moodle.git/commitdiff
Disable the "save" button if the file isn't writable.
authorstronk7 <stronk7>
Mon, 2 Apr 2007 21:51:16 +0000 (21:51 +0000)
committerstronk7 <stronk7>
Mon, 2 Apr 2007 21:51:16 +0000 (21:51 +0000)
Merged from MOODLE_18_STABLE

admin/xmldb/actions/main_view/main_view.class.php

index b290d722cb85bf4d3e16a60877489e8f9dc3bd8b..921cb711b57a2c13f5fe2fa38f8a6be93401f919 100644 (file)
@@ -152,7 +152,7 @@ class main_view extends XMLDBAction {
             /// The save button
                 if ($dbdir->path_exists &&
                     file_exists($key . '/install.xml') &&
-                    is_readable($key . '/install.xml') &&
+                    is_writeable($key . '/install.xml') &&
                     is_writeable($key) &&
                     !empty($dbdir->xml_loaded) &&
                     !empty($dbdir->xml_changed)) {