Skip to content

Commit 4394eba

Browse files
Remove strict version check
1 parent f23ef89 commit 4394eba

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

index.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
<?php
22

3-
use Kirby\Cms\App as Kirby;
3+
use Kirby\Cms\App;
44

5-
// validate the Kirby version; the supported versions are
6-
// updated manually when verified to work with the plugin
7-
$kirbyVersion = Kirby::version();
8-
9-
if (
10-
$kirbyVersion !== null &&
11-
(version_compare($kirbyVersion, '3.6.0-rc.2', '<') === true ||
12-
version_compare($kirbyVersion, '3.9.0-alpha', '>=') === true)
13-
) {
14-
throw new Exception(
15-
'The installed version of the Markdown field plugin ' .
16-
'is not compatible with Kirby ' . $kirbyVersion
17-
);
18-
}
19-
20-
Kirby::plugin('fabianmichael/markdown-field', [
5+
App::plugin('fabianmichael/markdown-field', [
216
'blueprints' => [
227
'blocks/markdown' => __DIR__ . '/blueprints/blocks/markdown.yml',
238
],

0 commit comments

Comments
 (0)