aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-05-31 19:35:51 +0000
committerplegall <plg@piwigo.org>2009-05-31 19:35:51 +0000
commit32a24fefc9aece305d244933ec9e3272978193bc (patch)
tree2bf5bb132364eef99915d32c88c6f7e9d374349a /admin/include/functions.php
parente486b3c79af80356ce85afe8fed47ee4a554a83f (diff)
feature 1020 added: ability to subscribe to Piwigo Announcement Newsletter from
Piwigo itself. Admins can perform this action at the end of installation or on administration panel index. git-svn-id: http://piwigo.org/svn/branches/2.0@3381 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 6f41aafba..88505ca5c 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -2114,4 +2114,13 @@ SELECT '.$conf['user_fields']['username'].'
return $username;
}
+
+function get_newsletter_subscribe_base_url($language) {
+ $subscribe_domain = 'piwigo.org';
+ if ('fr_FR' == $language) {
+ $subscribe_domain = 'fr.piwigo.org';
+ }
+
+ return 'http://'.$subscribe_domain.'/announcement/subscribe.php?email=';
+}
?> \ No newline at end of file