Commit d507081c authored by osman's avatar osman

Issue #3035906 by gianani: Remove/reduce variable_set usage in hook_init

parent f1c1c276
......@@ -203,7 +203,11 @@ function lazy_is_field_enabled() {
*/
function lazy_is_library_installed() {
$blazy = libraries_detect('blazy');
variable_set('lazy_library_installed', $blazy['installed']);
$blazy_installed = variable_get('lazy_library_installed');
if ($blazy['installed'] !== $blazy_installed) {
variable_set('lazy_library_installed', $blazy['installed']);
}
return $blazy['installed'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment