aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-07-17 21:22:34 +0000
committerplegall <plg@piwigo.org>2009-07-17 21:22:34 +0000
commit9c00b3e8f1190a2dab9ab3e947c09acfda78120c (patch)
tree2625f49f36475176d1ee9b32451db08ae7887eb6 /admin
parent480fc1449a39808ce3c04ac25ca3908827fefef1 (diff)
merge r3620 from branch 2.0 to trunk
feature 1057 added: let the IT/DE/ES users subscribe to the ID/DE/ES Piwigo announcement newsletter. git-svn-id: http://piwigo.org/svn/trunk@3621 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 560891d1f..4178a285f 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -2117,8 +2117,16 @@ SELECT '.$conf['user_fields']['username'].'
function get_newsletter_subscribe_base_url($language) {
$subscribe_domain = 'piwigo.org';
- if ('fr_FR' == $language) {
- $subscribe_domain = 'fr.piwigo.org';
+
+ $domain_of = array(
+ 'fr_FR' => 'fr.piwigo.org',
+ 'it_IT' => 'it.piwigo.org',
+ 'de_DE' => 'de.piwigo.org',
+ 'es_ES' => 'es.piwigo.org',
+ );
+
+ if (isset($domain_of[$language])) {
+ $subscribe_domain = $domain_of[$language];
}
return 'http://'.$subscribe_domain.'/announcement/subscribe/';