From d25c50f43b515aa8ad8a0a6d773320d31f07f251 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 25 Aug 2012 17:00:56 +0200 Subject: [PATCH] Added newline unify --- .../files/lib/system/option/TextareaOptionType.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php b/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php index 83dce00058..8528541e46 100644 --- a/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php @@ -2,6 +2,7 @@ namespace wcf\system\option; use wcf\data\option\Option; use wcf\system\WCF; +use wcf\util\StringUtil; /** * TextareaOptionType is an implementation of IOptionType for 'textarea' tags. @@ -24,4 +25,11 @@ class TextareaOptionType extends TextOptionType { )); return WCF::getTPL()->fetch('textareaOptionType'); } + + /** + * @see wcf\system\option\IOptionType::getData() + */ + public function getData(Option $option, $newValue) { + return StringUtil::unifyNewlines(parent::getData($option, $newValue)); + } } -- 2.20.1