Ignore:
Timestamp:
Mar 9, 2007, 4:37:56 AM (17 years ago)
Author:
rvelices
Message:

plugins only:

  • fix in category_default.inc.php (action parameters were wrong if show_nb_comments was true)
  • refactor actions and events in picture.php in order to give more flexibility to plugins
  • added some variables in index.tpl (not used by pwg itself) to allow plugins to add their own content
File:
1 edited

Legend:

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

    r1868 r1882  
    156156    AND validated = \'true\'
    157157;';
    158     $row = mysql_fetch_array(pwg_query($query));
     158    list($row['nb_comments']) = mysql_fetch_array(pwg_query($query));
    159159    $template->assign_block_vars(
    160160      'thumbnails.line.thumbnail.nb_comments',
Note: See TracChangeset for help on using the changeset viewer.