diff --git a/file/lib/system/option/TimeIntervalOptionType.php b/file/lib/system/option/TimeIntervalOptionType.php new file mode 100644 index 0000000..3cf5558 --- /dev/null +++ b/file/lib/system/option/TimeIntervalOptionType.php @@ -0,0 +1,20 @@ + + * @package timwolla.wcf.chat + * @subpackage system.option + */ +class TimeIntervalOptionType extends TextOptionType { + /** + * @see wcf\system\option\IOptionType::getData() + */ + public function getData(\wcf\data\option\Option $option, $newValue) { + return \wcf\util\ChatUtil::timeModifier($newValue); + } +} diff --git a/language/de.xml b/language/de.xml index d785e61..36042e7 100644 --- a/language/de.xml +++ b/language/de.xml @@ -4,7 +4,6 @@ - @@ -22,9 +21,8 @@ - - + diff --git a/option.xml b/option.xml index 9a921a9..13418c2 100644 --- a/option.xml +++ b/option.xml @@ -72,7 +72,7 @@