Skip to content

Commit

Permalink
Merge pull request phpmyadmin#12522 from sudheesh001/Issue-12509
Browse files Browse the repository at this point in the history
Fixes phpmyadmin#12509 Removes unused function PMA_addJSVar
  • Loading branch information
nijel authored Sep 2, 2016
2 parents 761281f + 2833c6b commit 4305f6e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions libraries/core.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -781,22 +781,6 @@ function PMA_addJSCode($str)
$scripts->addCode($str);
}

/**
* Adds JS code snippet for variable assignment
* to be displayed by the PMA\libraries\Response class.
*
* @param string $key Name of value to set
* @param mixed $value Value to set, can be either string or array of strings
* @param bool $escape Whether to escape value or keep it as it is
* (for inclusion of js code)
*
* @return void
*/
function PMA_addJSVar($key, $value, $escape = true)
{
PMA_addJSCode(Sanitize::getJsValue($key, $value, $escape));
}

/**
* Replace some html-unfriendly stuff
*
Expand Down

0 comments on commit 4305f6e

Please sign in to comment.