aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-03-13 23:37:34 +0000
committerplegall <plg@piwigo.org>2009-03-13 23:37:34 +0000
commitab6f96964aef65c6c284501ac2027eb4435a1bfc (patch)
tree4e0be73c485e2a5c87d3ea0b8aa11ffc4928f770 /install.php
parent497e753bcf4208e1adc457dbc0f406b923594343 (diff)
bug 926 fixed: change links to piwigo.org so that they go to existing URLs.
new: if the current language is french, the links go to fr.piwigo.org insted. git-svn-id: http://piwigo.org/svn/branches/2.0@3196 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install.php')
-rw-r--r--install.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/install.php b/install.php
index 91d858a6b..ec222db7d 100644
--- a/install.php
+++ b/install.php
@@ -211,6 +211,14 @@ else
}
}
+if ('fr_FR' == $language) {
+ define('PHPWG_DOMAIN', 'fr.piwigo.org');
+}
+else {
+ define('PHPWG_DOMAIN', 'piwigo.org');
+}
+define('PHPWG_URL', 'http://'.PHPWG_DOMAIN);
+
load_language( 'common.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
load_language( 'admin.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
load_language( 'install.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
@@ -393,7 +401,7 @@ $template->assign(
'F_DB_PREFIX' => $table_prefix,
'F_ADMIN'=>$admin_name,
'F_ADMIN_EMAIL'=>$admin_mail,
- 'L_INSTALL_HELP'=>sprintf(l10n('install_help'), 'http://forum.'.PHPWG_DOMAIN.'/'),
+ 'L_INSTALL_HELP'=>sprintf(l10n('install_help'), PHPWG_URL.'/forum'),
));
//------------------------------------------------------ errors & infos display