diff options
author | plegall <plg@piwigo.org> | 2009-03-13 23:37:34 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2009-03-13 23:37:34 +0000 |
commit | ab6f96964aef65c6c284501ac2027eb4435a1bfc (patch) | |
tree | 4e0be73c485e2a5c87d3ea0b8aa11ffc4928f770 /include/common.inc.php | |
parent | 497e753bcf4208e1adc457dbc0f406b923594343 (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 'include/common.inc.php')
-rw-r--r-- | include/common.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
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'); |