diff options
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r-- | admin/include/functions.php | 12 |
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/'; |