diff --git a/adminer/edit.inc.php b/adminer/edit.inc.php index 4390bc0c..1d23d12c 100644 --- a/adminer/edit.inc.php +++ b/adminer/edit.inc.php @@ -64,7 +64,7 @@ if ($_POST["save"]) { } ?> -
diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index a24b1ba8..b9bb39cb 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -130,7 +130,7 @@ document.getElementById('username').focus(); */ function selectQuery($query) { global $jush; - return ">> " . h(str_replace("\n", " ", $query)) . "
" . lang('Edit') . "" . (is_ajax() ? " #" : "") . "\n";
+ return "
>> " . h(str_replace("\n", " ", $query)) . "
" . lang('Edit') . "\n";
}
/** Description of a row in a table
diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php
index 36ba8916..550fd999 100644
--- a/adminer/include/functions.inc.php
+++ b/adminer/include/functions.inc.php
@@ -361,10 +361,14 @@ function redirect($location, $message = null) {
$_SESSION["messages"][] = $message;
}
if (isset($location)) {
+ if ($location == "") {
+ $location = ".";
+ }
if (!is_ajax()) {
- header("Location: " . ($location != "" ? $location : "."));
+ header("Location: $location");
exit;
}
+ header("X-AJAX-Redirect: $location");
$_POST = array();
}
}
diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php
index a80e0dac..f2cd1048 100644
--- a/adminer/lang/cs.inc.php
+++ b/adminer/lang/cs.inc.php
@@ -289,6 +289,4 @@ $translations = array(
// function translation used in Editor
'now' => 'teď',
-
- 'Cancel' => 'Storno',
);
diff --git a/adminer/select.inc.php b/adminer/select.inc.php
index cbb2ac89..a4473995 100644
--- a/adminer/select.inc.php
+++ b/adminer/select.inc.php
@@ -231,7 +231,7 @@ if (!$columns) {
$result->seek($limit * $page);
}
$email_fields = array();
- echo "