aboutsummaryrefslogtreecommitdiffstats
path: root/admin/configuration.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-01-30 22:16:01 +0000
committerrub <rub@piwigo.org>2008-01-30 22:16:01 +0000
commit7bb12f4f481639547b7aabd38eb044eb1f942c66 (patch)
tree5e175322389e678094ea0cae3a12c07e062d0a79 /admin/configuration.php
parent49b663ecec19a8b12f4986c2c2e8f193e2802366 (diff)
Replace old use of $lang by l10n function.
Merge BSF 2200:2201 into branch-1_7 git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2202 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/configuration.php')
-rw-r--r--admin/configuration.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index 01eb474e8..20895dc88 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -80,7 +80,7 @@ if (isset($_POST['submit']) and !is_adviser())
{
if ( !url_is_remote($_POST['gallery_url']) )
{
- array_push($page['errors'], $lang['conf_gallery_url_error']);
+ array_push($page['errors'], l10n('conf_gallery_url_error'));
}
foreach( $main_checkboxes as $checkbox)
{
@@ -104,7 +104,7 @@ if (isset($_POST['submit']) and !is_adviser())
or $_POST['nb_comment_page'] < 5
or $_POST['nb_comment_page'] > 50)
{
- array_push($page['errors'], $lang['conf_nb_comment_page_error']);
+ array_push($page['errors'], l10n('conf_nb_comment_page_error'));
}
foreach( $comments_checkboxes as $checkbox)
{
@@ -146,7 +146,7 @@ WHERE param = \''.$row['param'].'\'
pwg_query($query);
}
}
- array_push($page['infos'], $lang['conf_confirmation']);
+ array_push($page['infos'], l10n('conf_confirmation'));
}
//------------------------------------------------------ $conf reinitialization
@@ -191,10 +191,10 @@ $action.= '&amp;section='.$page['section'];
$template->assign_vars(
array(
- 'L_YES'=>$lang['yes'],
- 'L_NO'=>$lang['no'],
- 'L_SUBMIT'=>$lang['submit'],
- 'L_RESET'=>$lang['reset'],
+ 'L_YES'=>l10n('yes'),
+ 'L_NO'=>l10n('no'),
+ 'L_SUBMIT'=>l10n('submit'),
+ 'L_RESET'=>l10n('reset'),
'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=configuration',
@@ -280,7 +280,7 @@ switch ($page['section'])
{
// Reload user
$edit_user = build_user($conf['default_user_id'], false);
- array_push($page['infos'], $lang['conf_confirmation']);
+ array_push($page['infos'], l10n('conf_confirmation'));
}
}
$page['errors'] = array_merge($page['errors'], $errors);