Skip to content

Commit 66c6537

Browse files
committed
Previews are enabled if MagicPreview 1.5.1-pl or higher is installed
1 parent d5975b4 commit 66c6537

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/components/versionx/elements/plugins/versionx.plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@
124124
break;
125125

126126
case 'OnResourceMagicPreview':
127+
/** @var array $properties */
127128
if (empty($properties['versionx'])) {
128129
break;
129130
}
130131

131-
/** @var array $properties */
132132
$versionX = new VersionX($modx);
133133
$deltaId = $properties['delta_id'];
134134

core/components/versionx/processors/mgr/deltas/preview.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function process()
3535
'processors_path' => $this->magicPreview->config['processorsPath'],
3636
]);
3737

38-
return $this->success('wooo', $response->getResponse()['object']);
38+
return $this->success('', $response->getResponse()['object']);
3939
}
4040
}
4141
return 'VersionXRevertPreviewProcessor';

core/components/versionx/src/VersionX.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,6 @@ public function magicPreviewLoaded(): bool
217217
return false;
218218
}
219219

220-
return version_compare($magicPreview::VERSION, '1.5.0-pl', '>=');
220+
return version_compare($magicPreview::VERSION, '1.5.1-pl', '>=');
221221
}
222222
}

0 commit comments

Comments
 (0)