WP DSGVO Tools - Version 2.0.2

Version Description

  • Fehler beim Laden der Email Templates behoben falls die eingestellte Sprache de_DE_formal ist.
Download this release

Release Info

Developer shapepress
Plugin Icon 128x128 WP DSGVO Tools
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-dsgvo.eu
4
  Tags: gdpr, dsgvo, datenschutz, wordpress, compliance, data
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.8
7
- Stable tag: 2.0.1
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -77,6 +77,9 @@ WICHTIG: Vor der Installation bitte alle bisher aktivierten Cookie Notice Plugin
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 2.0.1 =
81
  * Standardwert für die Cookie Notice Art
82
 
4
  Tags: gdpr, dsgvo, datenschutz, wordpress, compliance, data
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.8
7
+ Stable tag: 2.0.2
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
77
 
78
  == Changelog ==
79
 
80
+ = 2.0.2 =
81
+ * Fehler beim Laden der Email Templates behoben falls die eingestellte Sprache de_DE_formal ist.
82
+
83
  = 2.0.1 =
84
  * Standardwert für die Cookie Notice Art
85
 
includes/models/subject-access-request.php CHANGED
@@ -60,16 +60,17 @@ Class SPDSGVOSubjectAccessRequest extends SPDSGVOModel {
60
  }
61
  }
62
 
63
-
 
64
 
65
  // Send Email
66
  $email = SPDSGVOMail::init()
67
  ->from(SPDSGVOSettings::get('admin_email'))
68
  ->to($this->email)
69
  ->subject(__('Subject access request','shapepress-dsgvo'). ': '. parse_url(home_url(), PHP_URL_HOST))
70
- ->beforeTemplate(SPDSGVO::pluginDir('/templates/'.get_locale().'/emails/header.php'))
71
- ->afterTemplate( SPDSGVO::pluginDir('/templates/'.get_locale().'/emails/footer.php'))
72
- ->template(SPDSGVO::pluginDir('/templates/'.get_locale().'/emails/subject-access-request.php'), array(
73
  'title' => __('Subject access request','shapepress-dsgvo'),
74
 
75
  'zip_link' => SPDSGVODownloadSubjectAccessRequestAction::url(array(
60
  }
61
  }
62
 
63
+ $locale = get_locale();
64
+ if (substr( $locale, 0, 5 ) === 'de_DE') $locale = 'de_DE';
65
 
66
  // Send Email
67
  $email = SPDSGVOMail::init()
68
  ->from(SPDSGVOSettings::get('admin_email'))
69
  ->to($this->email)
70
  ->subject(__('Subject access request','shapepress-dsgvo'). ': '. parse_url(home_url(), PHP_URL_HOST))
71
+ ->beforeTemplate(SPDSGVO::pluginDir('/templates/'.$locale.'/emails/header.php'))
72
+ ->afterTemplate( SPDSGVO::pluginDir('/templates/'.$locale.'/emails/footer.php'))
73
+ ->template(SPDSGVO::pluginDir('/templates/'.$locale.'/emails/subject-access-request.php'), array(
74
  'title' => __('Subject access request','shapepress-dsgvo'),
75
 
76
  'zip_link' => SPDSGVODownloadSubjectAccessRequestAction::url(array(
includes/models/unsubscriber.php CHANGED
@@ -94,13 +94,16 @@ Class SPDSGVOUnsubscriber extends SPDSGVOModel {
94
 
95
  if ($this->process_now === '1') return;
96
 
 
 
 
97
  $email = SPDSGVOMail::init()
98
  ->from(SPDSGVOSettings::get('admin_email'))
99
  ->to($this->email)
100
  ->subject(__('Confirmation of delete request','shapepress-dsgvo'). ': '. parse_url(home_url(), PHP_URL_HOST))
101
- ->beforeTemplate(SPDSGVO::pluginDir('/templates/'.get_locale().'/emails/header.php'))
102
- ->afterTemplate( SPDSGVO::pluginDir('/templates/'.get_locale().'/emails/footer.php'))
103
- ->template(SPDSGVO::pluginDir('/templates/'.get_locale().'/emails/super-unsubscribe.php'), array(
104
  'website' => parse_url(home_url(), PHP_URL_HOST),
105
  'confirm_link' => SPDSGVOSuperUnsubscribeConfirmAction::url(array(
106
  'token' => $this->token
94
 
95
  if ($this->process_now === '1') return;
96
 
97
+ $locale = get_locale();
98
+ if (substr( $locale, 0, 5 ) === 'de_DE') $locale = 'de_DE';
99
+
100
  $email = SPDSGVOMail::init()
101
  ->from(SPDSGVOSettings::get('admin_email'))
102
  ->to($this->email)
103
  ->subject(__('Confirmation of delete request','shapepress-dsgvo'). ': '. parse_url(home_url(), PHP_URL_HOST))
104
+ ->beforeTemplate(SPDSGVO::pluginDir('/templates/'.$locale.'/emails/header.php'))
105
+ ->afterTemplate( SPDSGVO::pluginDir('/templates/'.$locale.'/emails/footer.php'))
106
+ ->template(SPDSGVO::pluginDir('/templates/'.$locale.'/emails/super-unsubscribe.php'), array(
107
  'website' => parse_url(home_url(), PHP_URL_HOST),
108
  'confirm_link' => SPDSGVOSuperUnsubscribeConfirmAction::url(array(
109
  'token' => $this->token
sp-dsgvo.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP DSGVO Tools
17
  * Plugin URI: https://wp-dsgvo.eu
18
  * Description: WP DSGVO Tools helfen beim Erf&uuml;llen der Richtlinien der Datenschutzgrundverordnung (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">DSGVO</a>), spezialisiert auf &Ouml;sterreich und Deutschland.
19
- * Version: 2.0.1
20
  * Author: Shapepress eU
21
  * Author URI: https://www.shapepress.com
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -28,7 +28,7 @@ if (! defined('WPINC')) {
28
  die();
29
  }
30
 
31
- define('sp_dsgvo_VERSION', '2.0.1');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  /* i592995 */
34
  define('sp_dsgvo_URL', plugin_dir_url( __FILE__ ));
16
  * Plugin Name: WP DSGVO Tools
17
  * Plugin URI: https://wp-dsgvo.eu
18
  * Description: WP DSGVO Tools helfen beim Erf&uuml;llen der Richtlinien der Datenschutzgrundverordnung (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">DSGVO</a>), spezialisiert auf &Ouml;sterreich und Deutschland.
19
+ * Version: 2.0.2
20
  * Author: Shapepress eU
21
  * Author URI: https://www.shapepress.com
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
28
  die();
29
  }
30
 
31
+ define('sp_dsgvo_VERSION', '2.0.2');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  /* i592995 */
34
  define('sp_dsgvo_URL', plugin_dir_url( __FILE__ ));