Skip to content

Commit

Permalink
Fixed bug with missing Config::persist() in Contao 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Jan 30, 2015
1 parent 1b5cf7f commit 294a268
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/MadeYourDay/Contao/SliderRunonce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}

Expand Down

0 comments on commit 294a268

Please sign in to comment.