From 9ab34dbfd0ff2d27e1115895c4b5269731e966b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 6 Jun 2017 11:09:10 +0200 Subject: [PATCH] Remove unused pma_token js variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PMA_commonParams.get('token') is already used instead. Issue #13355 Signed-off-by: Michal Čihař --- libraries/Sql.php | 2 -- templates/table/chart/tbl_chart.phtml | 1 - 2 files changed, 3 deletions(-) diff --git a/libraries/Sql.php b/libraries/Sql.php index dfd008654b..0b243ce7b3 100644 --- a/libraries/Sql.php +++ b/libraries/Sql.php @@ -238,7 +238,6 @@ class Sql public static function getHtmlForProfilingChart($url_query, $db, $profiling_results) { if (! empty($profiling_results)) { - $pma_token = $_SESSION[' PMA_token ']; $url_query = isset($url_query) ? $url_query : URL::getCommon(array('db' => $db)); @@ -287,7 +286,6 @@ class Sql $profiling_table .= << - pma_token = '$pma_token'; url_query = '$url_query'; EOT; diff --git a/templates/table/chart/tbl_chart.phtml b/templates/table/chart/tbl_chart.phtml index b9e14c611d..1a5d69272d 100644 --- a/templates/table/chart/tbl_chart.phtml +++ b/templates/table/chart/tbl_chart.phtml @@ -1,5 +1,4 @@