From ab6f96964aef65c6c284501ac2027eb4435a1bfc Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 13 Mar 2009 23:37:34 +0000 Subject: 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 --- include/common.inc.php | 9 +++++++++ include/constants.php | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/common.inc.php b/include/common.inc.php index 76054153a..1ca54e1bb 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -125,6 +125,15 @@ load_plugins(); include(PHPWG_ROOT_PATH.'include/user.inc.php'); +if ('fr_FR' == $user['language']) { + define('PHPWG_DOMAIN', 'fr.piwigo.org'); +} +else { + define('PHPWG_DOMAIN', 'piwigo.org'); +} +define('PHPWG_URL', 'http://'.PHPWG_DOMAIN); +define('PEM_URL', 'http://'.PHPWG_DOMAIN.'/ext'); + // language files load_language('common.lang'); diff --git a/include/constants.php b/include/constants.php index 27e429a14..99a4816e7 100644 --- a/include/constants.php +++ b/include/constants.php @@ -23,9 +23,6 @@ // Default settings define('PHPWG_VERSION', '2.0'); -define('PHPWG_DOMAIN', 'piwigo.org'); -define('PHPWG_URL', 'http://'.PHPWG_DOMAIN); -define('PEM_URL', 'http://'.PHPWG_DOMAIN.'/ext'); define('PHPWG_DEFAULT_LANGUAGE', 'en_UK'); define('PHPWG_DEFAULT_TEMPLATE', 'yoga/Sylvia'); -- cgit v1.2.3