From ce83605174b8ffcd31e9bd0603439704ba4b421a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 15 Dec 2012 23:13:51 -0800 Subject: [PATCH] Display warning for missing UPDATE privilege (bug #3466883) --- adminer/edit.inc.php | 4 +++- adminer/lang/cs.inc.php | 1 + adminer/lang/xx.inc.php | 1 + changes.txt | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/adminer/edit.inc.php b/adminer/edit.inc.php index 33651913..1c8c9822 100644 --- a/adminer/edit.inc.php +++ b/adminer/edit.inc.php @@ -77,7 +77,9 @@ if ($row === false) {
" . lang('You have no privileges to update this table.') . "\n"; +} else { echo "\n"; foreach ($fields as $name => $field) { echo "
" . $adminer->fieldName($field); diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php index 9a41ceea..9804ff02 100644 --- a/adminer/lang/cs.inc.php +++ b/adminer/lang/cs.inc.php @@ -263,6 +263,7 @@ $translations = array( 'Save and insert next' => 'Uložit a vložit další', 'Clone' => 'Klonovat', 'Delete' => 'Smazat', + 'You have no privileges to update this table.' => 'Nemáte oprávnění editovat tuto tabulku.', 'E-mail' => 'E-mail', 'From' => 'Odesílatel', diff --git a/adminer/lang/xx.inc.php b/adminer/lang/xx.inc.php index 2e88449e..05834aef 100644 --- a/adminer/lang/xx.inc.php +++ b/adminer/lang/xx.inc.php @@ -263,6 +263,7 @@ $translations = array( 'Save and insert next' => 'xx', 'Clone' => 'xx', 'Delete' => 'xx', + 'You have no privileges to update this table.' => 'xx', 'E-mail' => 'xx', 'From' => 'xx', diff --git a/changes.txt b/changes.txt index 53b18178..b02e73b1 100644 --- a/changes.txt +++ b/changes.txt @@ -6,6 +6,7 @@ Shorten printed values in varchar fields Display table default values on wide screens Display date in SQL history HTML5 input fields +Display warning for missing UPDATE privilege Fix switching language on first load Support enabled mbstring.func_overload MySQL: Prolong comment length since MySQL 5.5