Commit 49fb3c5f authored by alexpott's avatar alexpott

Issue #2003350 by elvis2, druderman, tvlooy, jibran: Rename Views method...

Issue #2003350 by elvis2, druderman, tvlooy, jibran: Rename Views method render_altered() to renderAltered().
parent 466078c0
......@@ -325,7 +325,7 @@ public function tokenizeValue($value, $row_index = NULL) {
}
}
$value = strip_tags($this->render_altered($fake_item, $tokens));
$value = strip_tags($this->renderAltered($fake_item, $tokens));
if (!empty($this->options['alter']['trim_whitespace'])) {
$value = trim($value);
}
......@@ -1208,7 +1208,7 @@ public function renderText($alter) {
if (!empty($alter['alter_text']) && $alter['text'] !== '') {
$tokens = $this->getRenderTokens($alter);
$value = $this->render_altered($alter, $tokens);
$value = $this->renderAltered($alter, $tokens);
}
if (!empty($this->options['alter']['trim_whitespace'])) {
......@@ -1279,7 +1279,7 @@ public function renderText($alter) {
/**
* Render this field as altered text, from a fieldset set by the user.
*/
function render_altered($alter, $tokens) {
protected function renderAltered($alter, $tokens) {
// Filter this right away as our substitutions are already sanitized.
$value = filter_xss_admin($alter['text']);
$value = strtr($value, $tokens);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment