From 87a7b60bed82775a58c2706e9441cbe428cbc393 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 13 Mar 2009 23:43:50 +0000 Subject: merge r3196 from branch 2.0 to trunk 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 instead. git-svn-id: http://piwigo.org/svn/trunk@3197 68402e56-0260-453c-a942-63ccdbb3a9ee --- install.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'install.php') diff --git a/install.php b/install.php index 94c4d40c6..0836d6cf1 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 -- cgit v1.2.3