Fix BC compatibility for Elementor properly

[MAILPOET-1863]
This commit is contained in:
Rostislav Wolny
2019-03-04 11:39:00 +01:00
committed by M. Shull
parent 2ccfe14708
commit 1e658a8dc6

View File

@@ -32,7 +32,7 @@ class Setting extends Model {
public static function getValue($key, $default = null) {
trigger_error('Calling Settings::getValue() is deprecated and will be removed. Use \MailPoet\Settings\SettingsController instead.', E_USER_DEPRECATED);
$settings = new SettingsController();
$settings->get($key, $default);
return $settings->get($key, $default);
}
public static function getAll() {