Development

#2900: raw_text.patch

You must first sign up to be able to contribute.

Ticket #2900: raw_text.patch

File raw_text.patch, 0.9 kB (added by Michael.Nolan, 1 year ago)

Patch to allow the extraction of raw comment

  • plugins/sfPropelActAsCommentableBehaviorPlugin/lib/sfPropelActAsCommentableBehavior.class.php

    old new  
    5151      { 
    5252        if (strlen($comment['text']) > 0) 
    5353        { 
    54           $comment['text'] = strip_tags($comment['text']); 
    5554          $comment['created_at'] = time(); 
    5655 
    5756          if (!isset($comment['namespace'])) 
     
    143142    foreach ($comment_objects as $comment_object) 
    144143    { 
    145144      $comment = $comment_object->toArray(); 
     145      $comment['RawText'] = $comment['Text']; 
     146      $comment['Text'] = strip_tags($comment['Text']); 
    146147      $comments[] = $comment; 
    147148    } 
    148149