Merge pull request #12522 from sudheesh001/Issue-12509

Fixes #12509 Removes unused function PMA_addJSVar
This commit is contained in:
Michal Čihař 2016-09-02 13:34:46 +02:00 committed by GitHub
commit 4305f6e503

View File

@ -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
*