history: removed some php warnings and reduced some annoying language warnings

git-svn-id: http://piwigo.org/svn/trunk@1782 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2007-02-06 01:10:59 +00:00
parent dd339aa6c5
commit 9e71c703d3
2 changed files with 9 additions and 9 deletions

View File

@@ -5,10 +5,10 @@
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
// | file : $RCSfile$
// | last update : $Date: 2006-11-29 05:18:11 +0100 (mer, 29 nov 2006) $
// | last modifier : $Author: rvelices $
// | revision : $Revision: 1620 $
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
@@ -205,7 +205,7 @@ SELECT date, time, user_id, IP, section, category_id, tag_ids, image_id
;';
$result = pwg_query($query);
$history_lines = array();
$history_lines = $user_ids = $category_ids = $image_ids = array();
while ($row = mysql_fetch_array($result))
{
$user_ids[$row['user_id']] = 1;

View File

@@ -2,10 +2,10 @@
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
// | file : $RCSfile$
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
@@ -345,7 +345,7 @@ if (isset($page['year']))
array_push(
$title_parts,
'<a href="'.$url.'">'.sprintf(l10n('Year %d'), $page['year']).'</a>'
'<a href="'.$url.'">'.$page['year'].'</a>'
);
$period_label = l10n('Month');
@@ -456,7 +456,7 @@ if (count($datas) > 0)
if (isset($page['day']))
{
$value = $i.' '.l10n('hour');
$value = sprintf('%02u', $i);
}
else if (isset($page['month']))
{