aboutsummaryrefslogtreecommitdiffstats
path: root/admin/configuration.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 /admin/configuration.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 'admin/configuration.php')
-rw-r--r--admin/configuration.php22
1 files changed, 5 insertions, 17 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index 92243fb01..871784758 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -90,20 +90,11 @@ if ( isset( $_POST['submit'] ) )
array_push( $error, $lang['conf_err_mail'] );
}
// periods must be integer values, they represents number of days
- if ( !preg_match( $int_pattern, $_POST['short_period'] )
- or !preg_match( $int_pattern, $_POST['long_period'] ) )
+ if (!preg_match($int_pattern, $_POST['recent_period'])
+ or $_POST['recent_period'] <= 0)
{
array_push( $error, $lang['err_periods'] );
}
- else
- {
- // long period must be longer than short period
- if ( $_POST['long_period'] <= $_POST['short_period']
- or $_POST['short_period'] <= 0 )
- {
- array_push( $error, $lang['err_periods_2'] );
- }
- }
// session_id size must be an integer between 4 and 50
if ( !preg_match( $int_pattern, $_POST['session_id_size'] )
or $_POST['session_id_size'] < 4
@@ -216,8 +207,7 @@ $template->assign_vars(array(
'NB_IMAGE_LINE'=>$conf['nb_image_line'],
'NB_ROW_PAGE'=>$conf['nb_line_page'],
'STYLE_SELECT'=>style_select($conf['default_style'], 'default_style'),
- 'SHORT_PERIOD'=>$conf['short_period'],
- 'LONG_PERIOD'=>$conf['long_period'],
+ 'RECENT_PERIOD'=>$conf['recent_period'],
'UPLOAD_MAXSIZE'=>$conf['upload_maxfilesize'],
'UPLOAD_MAXWIDTH'=>$conf['upload_maxwidth'],
'UPLOAD_MAXHEIGHT'=>$conf['upload_maxheight'],
@@ -271,10 +261,8 @@ $template->assign_vars(array(
'L_NB_ROW_PAGE_INFO'=>$lang['conf_default_nb_row_per_page_info'],
'L_STYLE_SELECT'=>$lang['customize_theme'],
'L_STYLE_SELECT_INFO'=>$lang['conf_default_theme_info'],
- 'L_SHORT_PERIOD'=>$lang['customize_short_period'],
- 'L_SHORT_PERIOD_INFO'=>$lang['conf_default_short_period_info'],
- 'L_LONG_PERIOD'=>$lang['customize_long_period'],
- 'L_LONG_PERIOD_INFO'=>$lang['conf_default_long_period_info'],
+ 'L_RECENT_PERIOD'=>$lang['customize_recent_period'],
+ 'L_RECENT_PERIOD_INFO'=>$lang['conf_default_recent_period_info'],
'L_EXPAND_TREE'=>$lang['customize_expand'],
'L_EXPAND_TREE_INFO'=>$lang['conf_default_expand_info'],
'L_NB_COMMENTS'=>$lang['customize_show_nb_comments'],