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 + ); } }