Changeset 2057 for branches/release-36/lib/MT/Comment.pm
- Timestamp:
- 04/24/08 21:16:00 (19 months ago)
- Files:
-
- 1 modified
-
branches/release-36/lib/MT/Comment.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-36/lib/MT/Comment.pm
r1866 r2057 35 35 ip => 1, 36 36 created_on => 1, 37 entry_id => 1, 37 entry_visible => { 38 columns => [ 'entry_id', 'visible' ], 39 }, 38 40 email => 1, 39 41 commenter_id => 1, … … 57 59 }, 58 60 }, 61 meta => 1, 59 62 defaults => { 60 63 junk_status => NOT_JUNK, … … 196 199 197 200 *publish = \&approve; 201 202 sub author { 203 my $comment = shift; 204 if (!@_ && $comment->commenter_id) { 205 require MT::Author; 206 if (my $auth = MT::Author->load($comment->commenter_id)) { 207 return $auth->nickname; 208 } 209 } 210 return $comment->column('author', @_); 211 } 198 212 199 213 sub all_text {
