Changeset 12870


Ignore:
Timestamp:
Jan 10, 2012, 4:26:42 PM (8 years ago)
Author:
patdenice
Message:

feature:2552
Apply trigger render_element_description for thumbnail title (for picture description)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r12855 r12870  
    849849  if (!empty($info['comment']))
    850850  {
    851     $title.= ' '.substr($info['comment'], 0, 100).'...';
     851    $info['comment'] = trigger_event('render_element_description', $info['comment']);
     852    $title.= ' '.substr($info['comment'], 0, 100).(strlen($info['comment']) > 100 ? '...' : '');
    852853  }
    853854
Note: See TracChangeset for help on using the changeset viewer.