From 39aa6c88028918ddb152b70b636319fa8f498dc9 Mon Sep 17 00:00:00 2001 From: Jehan-Guillaume de Rorthais Date: Mon, 18 Nov 2013 00:40:09 +0100 Subject: [PATCH] Fix page title when browsing views and add object name (table or view) --- display.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/display.php b/display.php index 1a76d822..89bf92ac 100644 --- a/display.php +++ b/display.php @@ -815,8 +815,20 @@ $scripts .= "\n"; // If a table is specified, then set the title differently - if (isset($_REQUEST['subject']) && isset($_REQUEST[$_REQUEST['subject']])) - $misc->printHeader($lang['strtables'], $scripts); + if (isset($_REQUEST['subject']) && isset($_REQUEST[$_REQUEST['subject']])) { + if ($_REQUEST['subject'] == 'table') { + $misc->printHeader( + $lang['strtables'].': '.$_REQUEST[$_REQUEST['subject']], + $scripts + ); + } + else if ($_REQUEST['subject'] == 'view') { + $misc->printHeader( + $lang['strviews'].': '.$_REQUEST[$_REQUEST['subject']], + $scripts + ); + } + } else $misc->printHeader($lang['strqueryresults']); -- 2.39.5