summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit2018-04-14 18:28:35 (GMT)
committerjoseph.olstad2018-04-14 18:28:35 (GMT)
commitcf39a19fb8e4348aa2cfac17bd6f945368c2bb19 (patch)
tree90b996b1ca057965763a78664ab39391599413fc
parentc169a34b0b1a73353c6291eef1e023b89ca72f58 (diff)
Issue #2841742 by rooby, AbramOmovich: Media WYSIWYG View Mode configuration lost after media_wysiwyg_update_72057.x-2.17
-rw-r--r--modules/media_wysiwyg/media_wysiwyg.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/media_wysiwyg/media_wysiwyg.install b/modules/media_wysiwyg/media_wysiwyg.install
index ae26856..6a2f3ea 100644
--- a/modules/media_wysiwyg/media_wysiwyg.install
+++ b/modules/media_wysiwyg/media_wysiwyg.install
@@ -182,9 +182,9 @@ function media_wysiwyg_update_7205() {
// Migrate the configuration from the old variables into the new DB tables.
$types = file_type_load_all(TRUE);
foreach ($types as $type) {
- $enabled = variable_get("media_wysiwyg_view_mode_" . $type->type . "_file_wysiwyg_restricted_view_modes_status", FALSE);
+ $enabled = variable_get("media_wysiwyg_view_mode_" . $type->type . "_wysiwyg_restricted_view_modes_status", FALSE);
if ($enabled) {
- $wysiwyg_restricted_view_modes = variable_get("media_wysiwyg_view_mode_" . $type->type . "_file_wysiwyg_restricted_view_modes", array());
+ $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')
->fields(array(
@@ -195,7 +195,7 @@ function media_wysiwyg_update_7205() {
}
}
- $enabled = variable_get("media_wysiwyg_view_mode_" . $type->type . "_wysiwyg_view_mode_status", FALSE);
+ $enabled = variable_get("media_wysiwyg_view_mode_" . $type->type . "_file_wysiwyg_view_mode_status", FALSE);
if ($enabled) {
$file_wysiwyg_view_mode = variable_get("media_wysiwyg_view_mode_" . $type->type . "_file_wysiwyg_view_mode", 'wysiwyg');
db_insert('media_view_mode_wysiwyg')