Merge pull request #12522 from sudheesh001/Issue-12509
Fixes #12509 Removes unused function PMA_addJSVar
This commit is contained in:
commit
4305f6e503
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user