1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Simplify AJAX redirect

This commit is contained in:
Jakub Vrana
2011-01-25 16:13:31 +01:00
parent 4a5eb8b408
commit fdea1970d0
3 changed files with 7 additions and 7 deletions

View File

@@ -14,9 +14,6 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
$title_page = $title_all . (SERVER != "" && SERVER != "localhost" ? h(" - " . SERVER) : "") . " - " . $adminer->name();
if (is_ajax()) {
header("X-AJAX-Title: " . rawurlencode($title_page));
if ($_GET["ajax"]) {
header("X-AJAX-Redirect: " . remove_from_uri("ajax"));
}
} else {
$protocol = ($HTTPS ? "https" : "http");
?>