Commit 0d1c8588 authored by sylus's avatar sylus Committed by joseph.olstad

Issue #2856433 by natew, joseph.olstad, sylus: Update 7205 doesn't check if...

Issue #2856433 by natew, joseph.olstad, sylus: Update 7205 doesn't check if file view modes are enabled before migrating the configuration
parent 561ee1cc
......@@ -179,7 +179,7 @@ function media_wysiwyg_update_7205() {
$types = file_type_load_all(TRUE);
foreach ($types as $type) {
$enabled = variable_get('media_wysiwyg_view_mode_audio_wysiwyg_restricted_view_modes_status', FALSE);
if ($status) {
if ($enabled) {
$wysiwyg_restricted_view_modes = variable_get("media_wysiwyg_view_mode_{$type->type}_wysiwyg_restricted_view_modes", array());
foreach ($wysiwyg_restricted_view_modes as $wysiwyg_restricted_view_mode) {
db_insert('media_restrict_wysiwyg')
......
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