aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-07-17 21:19:03 +0000
committerplegall <plg@piwigo.org>2009-07-17 21:19:03 +0000
commitcd10ccec6fc27b2f1c74226613a8b79bae2ce4f7 (patch)
tree7b504295ae1f0a32750fa913657a11faede1311b /admin/include/functions.php
parentb7878bf914981637666da0055e70e83700091cd6 (diff)
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/branches/2.0@3620 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/functions.php')
-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/';