Changeset 1678


Ignore:
Timestamp:
Dec 22, 2006, 12:49:12 AM (17 years ago)
Author:
rvelices
Message:

Very small corrections:

  • syntax error (action.php)
  • language (call to l10n_dec and English language)
  • replace some fetch_array with fetch_assoc (less memory used)
  • removed one unnecessary assign_block_vars
  • removed meta name="robots" (conflict with notification.php)
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/action.php

    r1677 r1678  
    8989  ON category_id=id
    9090  WHERE image_id='.$id.'
    91 .'get_sql_condition_FandF(array('forbidden_categories' => 'category_id'), 'AND').'
     91'.get_sql_condition_FandF(array('forbidden_categories' => 'category_id'), 'AND').'
    9292  LIMIT 1
    9393;';
  • trunk/include/filter.inc.php

    r1677 r1678  
    3434
    3535
    36 $filter['enabled'] = 
     36$filter['enabled'] =
    3737  (in_array(basename($_SERVER['SCRIPT_FILENAME']), $conf['filter_pages'])) and
    3838  (
     
    9999  }
    100100
    101   $header_notes[] = l10n_dec($lang['note_filter_day'], $lang['note_filter_days'], $user['recent_period']);
     101  $header_notes[] = l10n_dec('note_filter_day', 'note_filter_days', $user['recent_period']);
    102102}
    103103else
  • trunk/include/functions_tag.inc.php

    r1677 r1678  
    8585
    8686  $result = pwg_query($tags_query);
    87 
    8887  $tags = array();
    89 
    90   while ($row = mysql_fetch_array($result))
     88  while ($row = mysql_fetch_assoc($result))
    9189  {
    9290    array_push($tags, $row);
     
    110108;';
    111109  $result = pwg_query($query);
    112 
    113110  $tags = array();
    114 
    115   while ($row = mysql_fetch_array($result))
     111  while ($row = mysql_fetch_assoc($result))
    116112  {
    117113    array_push($tags, $row);
     
    270266  $result = pwg_query($query);
    271267  $tags = array();
    272   while($row = mysql_fetch_array($result))
     268  while($row = mysql_fetch_assoc($result))
    273269  {
    274270    array_push($tags, $row);
  • trunk/include/functions_url.inc.php

    r1677 r1678  
    420420    }
    421421    $page['save_root_path']['count'] = 1;
    422     $page['root_path'] = 'http://'.$_SERVER['HTTP_HOST'].cookie_path();
     422    $page['root_path'] = get_host_url().cookie_path();
    423423  }
    424424  else
  • trunk/include/page_header.php

    r1677 r1678  
    6565if (count($header_notes) > 0)
    6666{
    67   $template->assign_block_vars('header_notes', array());
    6867  foreach ($header_notes as $header_note)
    6968  {
  • trunk/language/en_UK.iso-8859-1/common.lang.php

    r1677 r1678  
    476476$lang['images_available'] = '%d images';
    477477$lang['images_available_cpl'] = 'in this category';
    478 $lang['images_available_cat'] = 'in %d sub-catégory';
    479 $lang['images_available_cats'] = 'in %d sub-catégories';
     478$lang['images_available_cat'] = 'in %d sub-category';
     479$lang['images_available_cats'] = 'in %d sub-categories';
    480480$lang['included'] = 'included';
    481481$lang['invalid_pwd'] = 'Invalid password!';
  • trunk/template/yoga/header.tpl

    r1677 r1678  
    44<head>
    55<meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}">
    6 <meta name="robots" content="index, follow">
    76<meta name="generator" content="PhpWebGallery (aka PWG), see www.phpwebgallery.net">
    87<!-- BEGIN header_meta -->
Note: See TracChangeset for help on using the changeset viewer.