aboutsummaryrefslogtreecommitdiffstats
path: root/include/htmlfunctions.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-07-09 21:00:00 +0000
committerz0rglub <z0rglub@piwigo.org>2004-07-09 21:00:00 +0000
commitf007a28bf6a40632e06f227a59f45d525136f9f4 (patch)
tree485c61ab3eb812b1807bd0d40ee682964dd59d1d /include/htmlfunctions.inc.php
parent2cf37f308e0d530fa642b016dfb4a0db24b5a883 (diff)
replacement of short_period and long_period by recent_period
git-svn-id: http://piwigo.org/svn/trunk@452 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/htmlfunctions.inc.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/htmlfunctions.inc.php b/include/htmlfunctions.inc.php
index 3c6046c99..a63b44f40 100644
--- a/include/htmlfunctions.inc.php
+++ b/include/htmlfunctions.inc.php
@@ -36,19 +36,11 @@ function get_icon( $date )
$day_in_seconds = 24*60*60;
$output = '';
$title = $lang['recent_image'].'&nbsp;';
- if ( $diff < $user['long_period'] * $day_in_seconds )
+ if ( $diff < $user['recent_period'] * $day_in_seconds )
{
$icon_url = './template/'.$user['template'].'/theme/';
- if ( $diff < $user['short_period'] * $day_in_seconds )
- {
- $icon_url.= 'new_short.gif';
- $title .= $user['short_period'];
- }
- else
- {
- $icon_url.= 'new_long.gif';
- $title .= $user['long_period'];
- }
+ $icon_url.= 'recent.gif';
+ $title .= $user['recent_period'];
$title .= '&nbsp;'.$lang['days'];
$size = getimagesize( $icon_url );
$output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';