From 294a2683fdedf76d5364a0a383d6b37c11abe078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Fri, 30 Jan 2015 10:21:10 +0100 Subject: [PATCH] Fixed bug with missing Config::persist() in Contao 3.2 --- src/MadeYourDay/Contao/SliderRunonce.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MadeYourDay/Contao/SliderRunonce.php b/src/MadeYourDay/Contao/SliderRunonce.php index 3190681..9cf6d24 100644 --- a/src/MadeYourDay/Contao/SliderRunonce.php +++ b/src/MadeYourDay/Contao/SliderRunonce.php @@ -33,7 +33,10 @@ public static function run() ) { $result = $database->prepare('SELECT lickey FROM tl_repository_installs WHERE extension = \'rocksolid-slider-pro\'')->execute(); if ($result && Slider::checkLicense((string)$result->lickey)) { - \Config::persist('rocksolid_slider_license', (string)$result->lickey); + \Config::getInstance()->add( + '$GLOBALS[\'TL_CONFIG\'][\'rocksolid_slider_license\']', + (string)$result->lickey + ); } }