diff -ur /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ori/cms/code/CommentAdmin.php /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ch/cms/code/CommentAdmin.php
|
old
|
new
|
|
| 67 | 67 | |
| 68 | 68 | $tableFields = array( |
| 69 | 69 | "Name" => _t('CommentAdmin.AUTHOR', 'Author'), |
| | 70 | "Email" => _t('CommentAdmin.EMAIL', 'Email'), |
| 70 | 71 | "Comment" => _t('CommentAdmin.COMMENT', 'Comment'), |
| 71 | 72 | "PageTitle" => _t('CommentAdmin.PAGE', 'Page'), |
| 72 | 73 | "Created" => _t('CommentAdmin.DATEPOSTED', 'Date Posted') |
| … |
… |
|
| 74 | 75 | |
| 75 | 76 | $popupFields = new FieldSet( |
| 76 | 77 | new TextField('Name', _t('CommentAdmin.NAME', 'Name')), |
| | 78 | new TextField('Email', _t('CommentAdmin.EMAIL', 'Email')), |
| 77 | 79 | new TextareaField('Comment', _t('CommentAdmin.COMMENT', 'Comment')) |
| 78 | 80 | ); |
| 79 | 81 | |
diff -ur /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ori/cms/code/sitefeatures/PageComment.php /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ch/cms/code/sitefeatures/PageComment.php
|
old
|
new
|
|
| 15 | 15 | "Name" => "Varchar", |
| 16 | 16 | "Comment" => "Text", |
| 17 | 17 | "IsSpam" => "Boolean", |
| 18 | | "NeedsModeration" => "Boolean" |
| | 18 | "NeedsModeration" => "Boolean", |
| | 19 | "Email" => "Varchar" |
| 19 | 20 | ); |
| 20 | 21 | |
| 21 | 22 | static $has_one = array( |
diff -ur /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ori/cms/code/sitefeatures/PageCommentInterface.php /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ch/cms/code/sitefeatures/PageCommentInterface.php
|
old
|
new
|
|
| 40 | 40 | |
| 41 | 41 | $fields = new FieldSet( |
| 42 | 42 | new HiddenField("ParentID", "ParentID", $this->page->ID), |
| 43 | | new TextField("Name", _t('PageCommentInterface.YOURNAME', 'Your name'))); |
| 44 | | |
| | 43 | new TextField("Name", _t('PageCommentInterface.YOURNAME', 'Your name')), |
| | 44 | new TextField("Email", _t('PageCommentInterface.YOUREMAIL', 'Your email - not displayed publicly'))); |
| | 45 | |
| 45 | 46 | if(MathSpamProtection::isEnabled()){ |
| 46 | 47 | $fields->push(new TextField("Math", sprintf(_t('PageCommentInterface.SPAMQUESTION', "Spam protection question: %s"), MathSpamProtection::getMathQuestion()))); |
| 47 | 48 | } |