Changeset 20303 for events

Show
Ignore:
Timestamp:
09/30/08 20:33:28 (2 months ago)
Author:
kenji
Message:

Add link to @username

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/codeigniter/trunk/system/application/views/user/main.php

    r20288 r20303  
    6060                        <td> 
    6161                                <p class="murmur"> 
    62                                 <?=h($row->comment)?> 
     62                                <?php  
     63                                        $row->comment = h($row->comment); 
     64                                        if ($row->reply_username) { 
     65                                                $row->comment = preg_replace('/^@(\w+)\s/', '@' . anchor(site_url('user/index/' . $row->reply_username), $row->reply_username) . ' ', $row->comment); 
     66                                        } 
     67                                ?> 
     68                                <?=$row->comment?> 
    6369                                <?=anchor(site_url('user/statuses/' . $row->username . '/' . $row->id), posted_time($row->created_at))?> 
    6470                                </p>