diff --git a/code/EditableSpamProtectionField.php b/code/EditableSpamProtectionField.php index f663b64..6c77d98 100644 --- a/code/EditableSpamProtectionField.php +++ b/code/EditableSpamProtectionField.php @@ -77,8 +77,11 @@ class EditableSpamProtectionField extends EditableFormField { return ""; } - function EditSegment() { - return $this->renderWith( $this->class ); + /** + * @return string + */ + public function Icon() { + return 'spamprotection/images/' . strtolower($this->class) . '.png'; } -} -?> \ No newline at end of file + +} \ No newline at end of file diff --git a/templates/EditableSpamProtectionField.ss b/templates/EditableSpamProtectionField.ss deleted file mode 100644 index 8ab357d..0000000 --- a/templates/EditableSpamProtectionField.ss +++ /dev/null @@ -1,20 +0,0 @@ -
\ No newline at end of file