Skip to content

Commit

Permalink
Remove strict version check
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmichael authored Jan 18, 2023
1 parent f23ef89 commit 4394eba
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
<?php

use Kirby\Cms\App as Kirby;
use Kirby\Cms\App;

// validate the Kirby version; the supported versions are
// updated manually when verified to work with the plugin
$kirbyVersion = Kirby::version();

if (
$kirbyVersion !== null &&
(version_compare($kirbyVersion, '3.6.0-rc.2', '<') === true ||
version_compare($kirbyVersion, '3.9.0-alpha', '>=') === true)
) {
throw new Exception(
'The installed version of the Markdown field plugin ' .
'is not compatible with Kirby ' . $kirbyVersion
);
}

Kirby::plugin('fabianmichael/markdown-field', [
App::plugin('fabianmichael/markdown-field', [
'blueprints' => [
'blocks/markdown' => __DIR__ . '/blueprints/blocks/markdown.yml',
],
Expand Down

0 comments on commit 4394eba

Please sign in to comment.