aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-03-11 23:02:13 +0000
committerrub <rub@piwigo.org>2007-03-11 23:02:13 +0000
commit051145723de0cb7678d78ebbf74cf5fced4cdd7f (patch)
treedc8448cd19998ffdec306b36eed92690f4935499 /admin
parentb79c8aceae62df26ab17049c9ce9330fdac3ab35 (diff)
Fix Mathias requests about French words.
Rename completely general tab into main tab. git-svn-id: http://piwigo.org/svn/trunk@1894 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/configuration.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index fabc6b189..0c8b21aa5 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -41,14 +41,14 @@ check_status(ACCESS_ADMINISTRATOR);
//-------------------------------------------------------- sections definitions
if (!isset($_GET['section']))
{
- $page['section'] = 'general';
+ $page['section'] = 'main';
}
else
{
$page['section'] = $_GET['section'];
}
-$general_checkboxes = array(
+$main_checkboxes = array(
'email_admin_on_new_user',
'allow_user_registration',
);
@@ -72,13 +72,13 @@ if (isset($_POST['submit']) and !is_adviser())
$int_pattern = '/^\d+$/';
switch ($page['section'])
{
- case 'general' :
+ case 'main' :
{
if ( !url_is_remote($_POST['gallery_url']) )
{
array_push($page['errors'], $lang['conf_gallery_url_error']);
}
- foreach( $general_checkboxes as $checkbox)
+ foreach( $main_checkboxes as $checkbox)
{
$_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
}
@@ -176,10 +176,10 @@ $template->set_filename('config', 'admin/configuration.tpl');
// TabSheet initialization
$page['tabsheet'] = array
(
- 'general' => array
+ 'main' => array
(
- 'caption' => l10n('conf_general_title'),
- 'url' => $conf_link.'general'
+ 'caption' => l10n('conf_main_title'),
+ 'url' => $conf_link.'main'
),
'history' => array
(
@@ -193,7 +193,7 @@ $page['tabsheet'] = array
),
'default' => array
(
- 'caption' => l10n('conf_default'),
+ 'caption' => l10n('conf_display'),
'url' => $conf_link.'default'
)
);
@@ -222,13 +222,13 @@ $html_check='checked="checked"';
switch ($page['section'])
{
- case 'general' :
+ case 'main' :
{
$lock_yes = ($conf['gallery_locked']==true)?'checked="checked"':'';
$lock_no = ($conf['gallery_locked']==false)?'checked="checked"':'';
$template->assign_block_vars(
- 'general',
+ 'main',
array(
'GALLERY_LOCKED_YES'=>$lock_yes,
'GALLERY_LOCKED_NO'=>$lock_no,
@@ -240,10 +240,10 @@ switch ($page['section'])
'CONF_GALLERY_URL' => $conf['gallery_url'],
));
- foreach( $general_checkboxes as $checkbox)
+ foreach( $main_checkboxes as $checkbox)
{
$template->merge_block_vars(
- 'general',
+ 'main',
array(
strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
)