Ignore:
Timestamp:
Jan 13, 2007, 4:13:40 AM (17 years ago)
Author:
rvelices
Message:

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%
File:
1 edited

Legend:

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

    r1717 r1719  
    529529    ('.implode(',', $dbfields).')
    530530     VALUES';
    531     foreach ($datas as $insert_id => $insert)
     531    $first = 1;
     532    foreach ($datas as $insert)
    532533    {
    533534      $query.= '
    534535    ';
    535       if ($insert_id > 0)
     536      if ($first)
     537      {
     538        $first = 0;
     539      }
     540      else
    536541      {
    537542        $query.= ',';
     
    18911896  global $conf, $header_notes;
    18921897  $count = 0;
    1893  
     1898
    18941899  if (($conf['show_exif']) and (!function_exists('read_exif_data')))
    18951900  {
Note: See TracChangeset for help on using the changeset viewer.