In sp-topic-view-class.php
Within sp_topicview_query(), lines 270-296
The "Is this post to be edited" code is repeated. The second instance goes a bit further and adds edit history.
# Is this post to be edited? if ($sfvars['displaymode'] == 'edit' && $sfvars['postedit'] == $r->post_id) { $t[$tidx]->editmode = 1; $t[$tidx]->editpost_id = $r->post_id; $t[$tidx]->editpost_content = sp_filter_content_edit($r->post_content); $t[$tidx]->posts[$pidx]->editmode = 1; } # Add edit history if ($r->post_edit) { $edits = unserialize($r->post_edit); $eidx = 0; foreach ($edits as $e) { $t[$tidx]->posts[$pidx]->edits[$eidx]->by = $e['by']; $t[$tidx]->posts[$pidx]->edits[$eidx]->at = $e['at']; $eidx++; } } # Is this post to be edited? if ($sfvars['displaymode'] == 'edit' && $sfvars['postedit'] == $r->post_id) { $t[$tidx]->editmode = 1; $t[$tidx]->editpost_id = $r->post_id; $t[$tidx]->editpost_content = sp_filter_content_edit($r->post_content); $t[$tidx]->editpost_history = $r->post_edit; $t[$tidx]->posts[$pidx]->editmode = 1; }