1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 22:53:01 +02:00

fixes #3639: Added description to GDPR prefs

Added check in shortcode to disable the GDPR message in case the prefs are empty
This commit is contained in:
Achim Ennenbach
2019-01-23 19:32:34 +01:00
parent f387fa149f
commit a7dca60d78
3 changed files with 20 additions and 0 deletions

View File

@@ -651,6 +651,11 @@ class signup_shortcodes extends e_shortcode
*/
function sc_signup_gdpr_info()
{
if (!e107::getPref('gdpr_termsandconditions', '') || !e107::getPref('gdpr_privacypolicy', ''))
{
return '';
}
$text = e107::getParser()->lanVars(LAN_SIGNUP_124,
array($this->sc_signup_gdpr_privacypolicy_link(), $this->sc_signup_gdpr_termsandconditions_link()));
return $text;