Skip to content

Commit

Permalink
Better error message on renaming table
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <mcihar@suse.cz>
  • Loading branch information
nijel committed Jan 3, 2014
1 parent 6102a55 commit 04b6181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/Table.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ function rename($new_name, $new_db = null)
}
}
$this->errors[] = sprintf(
__('Error renaming table %1$s to %2$s'),
__('Failed to rename table %1$s to %2$s!'),
$this->getFullName(),
$new_table->getFullName()
);
Expand Down Expand Up @@ -1578,8 +1578,8 @@ public function getUiProp($property)
if (isset($this->uiprefs[$property])) {
// check if the column name exists in this table
$tmp = explode(' ', $this->uiprefs[$property]);
$colname = $tmp[0];
//remove backquoting from colname
$colname = $tmp[0];
//remove backquoting from colname
$colname = str_replace('`', '', $colname);
//get the available column name without backquoting
$avail_columns = $this->getColumns(false);
Expand Down

0 comments on commit 04b6181

Please sign in to comment.