- render_category_description and render_category_literal_description events refactoring

git-svn-id: http://piwigo.org/svn/trunk@2117 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2007-10-02 05:38:54 +00:00
parent 00d39fe8ba
commit 2889cbc4eb
6 changed files with 46 additions and 29 deletions
+2 -8
View File
@@ -156,12 +156,6 @@ SELECT *
$cat[$k] = get_boolean( $cat[$k] );
}
}
global $conf;
if ( !( $conf['allow_html_descriptions'] and
preg_match('/<(div|br|img|script).*>/i', $cat['comment']) ) )
{
$cat['comment'] = nl2br(@$cat['comment']);
}
$upper_ids = explode(',', $cat['uppercats']);
if ( count($upper_ids)==1 )
@@ -448,7 +442,7 @@ function get_display_images_count($cat_nb_images, $cat_count_images, $cat_count_
$cat_count_images-= $cat_nb_images;
$cat_nb_images = 0;
}
//at least one image direct or indirect
$display_text.= l10n_dec('image_available', 'images_available', $cat_count_images);
@@ -469,4 +463,4 @@ function get_display_images_count($cat_nb_images, $cat_count_images, $cat_count_
return $display_text;
}
?>
?>