diff --git a/code/dataobjects/Comment.php b/code/dataobjects/Comment.php index e8717b1..bed08c4 100755 --- a/code/dataobjects/Comment.php +++ b/code/dataobjects/Comment.php @@ -137,25 +137,6 @@ class Comment extends DataObject { return ($parent->Title) ? $parent->Title : $parent->ClassName . " #" . $parent->ID; } - /** - * This method is called just before this object is - * written to the database. - * - * Specifically, make sure "http://" exists at the start - * of the URL, if it doesn't have https:// or http:// - */ - public function onBeforeWrite() { - parent::onBeforeWrite(); - - $url = $this->CommenterURL; - - if($url) { - if(strtolower(substr($url, 0, 8)) != 'https://' && strtolower(substr($url, 0, 7)) != 'http://') { - $this->CommenterURL = 'http://' . $url; - } - } - } - /** * @todo needs to compare to the new {@link Commenting} configuration API * diff --git a/templates/CommentsInterface_singlecomment.ss b/templates/CommentsInterface_singlecomment.ss index 616d84f..ebecb03 100755 --- a/templates/CommentsInterface_singlecomment.ss +++ b/templates/CommentsInterface_singlecomment.ss @@ -5,25 +5,28 @@ $Comment.XML <% end_if %>

+

- <% if CommenterURL %> - <% _t('PBY','Posted by') %> $Name.XML, $Created.Nice ($Created.Ago) + <% if $URL %> + <% _t('PBY','Posted by') %> $Name.XML, $Created.Nice ($Created.Ago) <% else %> <% _t('PBY','Posted by') %> $Name.XML, $Created.Nice ($Created.Ago) <% end_if %>

- +<% if ApproveLink || SpamLink || HamLink || DeleteLink %> + +<% end_if %>