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
This commit is contained in:
parent
480fc1449a
commit
9c00b3e8f1
1 changed files with 10 additions and 2 deletions
|
|
@ -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/';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue