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:
@@ -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");
|
||||
?>
|
||||
|
Reference in New Issue
Block a user