Ignore:
Timestamp:
Oct 2, 2007, 7:38:54 AM (17 years ago)
Author:
rvelices
Message:
  • render_category_description and render_category_literal_description events refactoring
File:
1 edited

Legend:

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

    r2070 r2117  
    157157    }
    158158  }
    159   global $conf;
    160   if ( !( $conf['allow_html_descriptions'] and
    161           preg_match('/<(div|br|img|script).*>/i', $cat['comment']) ) )
    162   {
    163     $cat['comment'] = nl2br(@$cat['comment']);
    164   }
    165159
    166160  $upper_ids = explode(',', $cat['uppercats']);
     
    449443      $cat_nb_images = 0;
    450444    }
    451    
     445
    452446    //at least one image direct or indirect
    453447    $display_text.= l10n_dec('image_available', 'images_available', $cat_count_images);
Note: See TracChangeset for help on using the changeset viewer.