From 87dcce412af41ad76836d7c83d6abea5fe2a3765 Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Sat, 2 Apr 2022 00:35:16 -0400 Subject: [PATCH] Fix incorrect object reference --- core/src/Revolution/modTemplateVar.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/Revolution/modTemplateVar.php b/core/src/Revolution/modTemplateVar.php index eb27f60a584..f3e5dbf96a7 100644 --- a/core/src/Revolution/modTemplateVar.php +++ b/core/src/Revolution/modTemplateVar.php @@ -406,10 +406,10 @@ public function renderInput($resource = null, $options = []) $this->set('default_text', $this->processBindings($this->get('default_text'), $resourceId)); /* remove disallowed tags and attributes from description */ - $this->set('description', $this->modx->stripHtml( + $this->set('description', $this->xpdo->stripHtml( $this->get('description'), - $this->modx->getOption('elements_description_allowedtags'), - $this->modx->getOption('elements_description_allowedattr') + $this->xpdo->getOption('elements_description_allowedtags'), + $this->xpdo->getOption('elements_description_allowedattr') )); $params = [];