Changeset 3300 for sandbox/lib/piece/blog/list.php
- Timestamp:
- 05/21/07 02:25:54 (20 months ago)
- Files:
-
- 1 modified
-
sandbox/lib/piece/blog/list.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sandbox/lib/piece/blog/list.php
r3299 r3300 8 8 $itemsView = ''; 9 9 foreach ($list['items'] as $item) { 10 $CHT_name = DBQuery::queryCell("SELECT b.name FROM {$database['prefix']}TeamEntryRelations a, {$database['prefix']}Users b WHERE a.Owner=$item[owner] AND a.Id=$item[id] AND a.Team=b.userid " ); 10 $teamblog_name = DBQuery::queryCell("SELECT b.name 11 FROM {$database['prefix']}TeamEntryRelations a, {$database['prefix']}Users b 12 WHERE a.Owner=".$item['owner']." AND a.Id=".$item['id']." AND a.Team=b.userid"); 11 13 $itemsView .= str_replace( 12 14 array( … … 19 21 fireEvent('ViewListDate', Timestamp::format3($item['published'])), 20 22 "$blogURL/" . ($blog['useSlogan'] ? 'entry/' . encodeURL($item['slogan']) : $item['id']), 21 htmlspecialchars('['.$ CHT_name.'] '. fireEvent('ViewListTitle', $item['title'])),23 htmlspecialchars('['.$teamblog_name.'] '. fireEvent('ViewListTitle', $item['title'])), 22 24 ($item['comments'] > 0) ? "({$item['comments']})" : '' 23 25 ),
