very small improvements:

- mass_inserts does not requires keys to start at 0
- recent_cats categories are sorted by global_rank (consistency)
- removed warning from page_header.php (when included from redirect)
- added 2 template functions for plugins (get_var and concat_var)
- removed unused code from profile.php
- changed css width for tag selection (search page) from 55em to almost 100%

git-svn-id: http://piwigo.org/svn/trunk@1719 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices 2007-01-13 03:13:40 +00:00
commit 80754de172
6 changed files with 47 additions and 18 deletions

View file

@ -528,11 +528,16 @@ function mass_inserts($table_name, $dbfields, $datas)
INSERT INTO '.$table_name.'
('.implode(',', $dbfields).')
VALUES';
foreach ($datas as $insert_id => $insert)
$first = 1;
foreach ($datas as $insert)
{
$query.= '
';
if ($insert_id > 0)
if ($first)
{
$first = 0;
}
else
{
$query.= ',';
}
@ -1890,7 +1895,7 @@ function check_conf()
{
global $conf, $header_notes;
$count = 0;
if (($conf['show_exif']) and (!function_exists('read_exif_data')))
{
$header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'show_exif\']');