Fix parameter name mismatch in `View::escape` method
The mismatch arises after migration from ZF1 to ZF-future.
This commit is contained in:
parent
695fe25891
commit
8e3c456327
|
@ -99,12 +99,12 @@ class View extends Zend_View_Abstract
|
||||||
/**
|
/**
|
||||||
* Escape the given value top be safely used in view scripts
|
* Escape the given value top be safely used in view scripts
|
||||||
*
|
*
|
||||||
* @param string $value The output to be escaped
|
* @param string $var The output to be escaped
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function escape($value)
|
public function escape($var)
|
||||||
{
|
{
|
||||||
return htmlspecialchars($value ?? '', ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, self::CHARSET, true);
|
return htmlspecialchars($var ?? '', ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, self::CHARSET, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue