MINOR: Parse HTMLText and HTMLVarchar values with ShortcodeParser before inserting into a template.

From: Andrew Short <andrewjshort@gmail.com>

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88475 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew Short 2009-10-11 00:06:59 +00:00 committed by Sam Minnee
parent 365b4784a9
commit 55408946a6
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class HTMLText extends Text {
} }
public function forTemplate() { public function forTemplate() {
return $this->value; return ShortcodeParser::get_active()->parse($this->value);
} }
public function hasValue() { public function hasValue() {

View File

@ -11,7 +11,7 @@ class HTMLVarchar extends Varchar {
public static $escape_type = 'xml'; public static $escape_type = 'xml';
public function forTemplate() { public function forTemplate() {
return $this->value; return ShortcodeParser::get_active()->parse($this->value);
} }
public function hasValue() { public function hasValue() {