parent
766a301a6b
commit
470fc3817f
1 changed files with 1 additions and 3 deletions
|
@ -341,7 +341,6 @@ class OC_Template{
|
||||||
* @brief Assign variables
|
* @brief Assign variables
|
||||||
* @param string $key key
|
* @param string $key key
|
||||||
* @param string $value value
|
* @param string $value value
|
||||||
* @param bool $sanitizeHTML false, if data shouldn't get passed through htmlentities
|
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* This function assigns a variable. It can be accessed via $_[$key] in
|
* This function assigns a variable. It can be accessed via $_[$key] in
|
||||||
|
@ -349,8 +348,7 @@ class OC_Template{
|
||||||
*
|
*
|
||||||
* If the key existed before, it will be overwritten
|
* If the key existed before, it will be overwritten
|
||||||
*/
|
*/
|
||||||
public function assign( $key, $value, $sanitizeHTML=true ) {
|
public function assign( $key, $value) {
|
||||||
if($sanitizeHTML == true) $value=OC_Util::sanitizeHTML($value);
|
|
||||||
$this->vars[$key] = $value;
|
$this->vars[$key] = $value;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue