Remove unused pma_token js variable

PMA_commonParams.get('token') is already used instead.

Issue #13355

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-06-06 11:09:10 +02:00
parent e8f3e0480d
commit 9ab34dbfd0
2 changed files with 0 additions and 3 deletions

View File

@ -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 .= <<<EOT
<script type="text/javascript">
pma_token = '$pma_token';
url_query = '$url_query';
</script>
EOT;

View File

@ -1,5 +1,4 @@
<script type="text/javascript">
pma_token = '<?= $_SESSION[' PMA_token ']; ?>';
url_query = '<?= $url_query; ?>';
</script>
<!-- Display Chart options -->