'checkforeignkeys' => 'xmldb',
'checkbigints' => 'xmldb',
'doc' => 'xmldb',
- 'viewxml' => 'xmldb'
+ 'viewxml' => 'xmldb',
+ 'pendingchangescannotbesaved' => 'xmldb'
));
}
if ($structure =& $dbdir->xml_file->getStructure()) {
if ($errors = $structure->getAllErrors()) {
if ($hithis) {
- $o .= '<tr class="highlight"><td class="error cell" colspan="9">' . implode (', ', $errors) . '</td></tr>';
+ $o .= '<tr class="highlight"><td class="error cell" colspan="10">' . implode (', ', $errors) . '</td></tr>';
} else {
- $o .= '<tr class="r' . $row . '"><td class="error cell" colspan="9">' . implode (', ', $errors) . '</td></tr>';
+ $o .= '<tr class="r' . $row . '"><td class="error cell" colspan="10">' . implode (', ', $errors) . '</td></tr>';
}
}
}
foreach ($fields as $field) {
if (!empty($field->hasenums)) {
if ($hithis) {
- $o .= '<tr class="highlight"><td class="error cell" colspan="9">';
+ $o .= '<tr class="highlight"><td class="error cell" colspan="10">';
} else {
- $o .= '<tr class="r' . $row . '"><td class="error cell" colspan="9">';
+ $o .= '<tr class="r' . $row . '"><td class="error cell" colspan="10">';
}
$o .= 'Table ' . $table->getName() . ', field ' . $field->getName() . ' has ENUM info';
if (!empty($field->hasenumsenabled)) {
}
}
}
+ /// If there are changes pending to be saved, but the file cannot be written... inform here
+ if ($dbdir->path_exists &&
+ file_exists($key . '/install.xml') &&
+ !empty($dbdir->xml_loaded) &&
+ !empty($dbdir->xml_changed) &&
+ (!is_writeable($key . '/install.xml') || !is_writeable($key))) {
+
+ if ($hithis) {
+ $o .= '<tr class="highlight"><td class="error cell" colspan="10">';
+ } else {
+ $o .= '<tr class="r' . $row . '"><td class="error cell" colspan="10">';
+ }
+ $o .= $this->str['pendingchangescannotbesaved'];
+ $o .= '</td></tr>';
+ }
}
$o .= '</table>';
$string['nowrongintsfound'] = 'No wrong integers have been found, your DB doesn\'t need further actions.';
$string['numberincorrectdecimals'] = 'Incorrect number of decimals for number field';
$string['numberincorrectlength'] = 'Incorrect length for number field';
+$string['pendingchangescannotbesaved'] = 'There are changes in this file but they cannot be saved! Please verify that both the directory and the \"install.xml\" within it have write permissions for the web server. Then reload this page and you should be able to save those changes.';
$string['reserved'] = 'Reserved';
$string['reservedwords'] = 'Reserved words';
$string['revert'] = 'Revert';