mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 17:32:25 +02:00
replacement of short_period and long_period by recent_period
git-svn-id: http://piwigo.org/svn/trunk@452 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -36,19 +36,11 @@ function get_icon( $date )
|
||||
$day_in_seconds = 24*60*60;
|
||||
$output = '';
|
||||
$title = $lang['recent_image'].' ';
|
||||
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 .= ' '.$lang['days'];
|
||||
$size = getimagesize( $icon_url );
|
||||
$output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';
|
||||
|
||||
Reference in New Issue
Block a user