Skip to content

Commit 6e223f0

Browse files
authored
Merge pull request #167 from FriendsOfREDAXO/alxndr-w-patch-1
YForm-REST-API unter YForm >=5.0.0 verfügbar machen
2 parents 6575863 + 03a3e21 commit 6e223f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

boot.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@
4646
rex_cronjob_manager::registerType(Cronjob\Publish::class);
4747
rex_cronjob_manager::registerType(Cronjob\Sync::class);
4848
}
49-
if (rex_plugin::get('yform', 'rest')->isAvailable()) {
49+
50+
if (version_compare(rex_addon::get('yform')->getVersion(), '5.0.0', '<')) {
51+
if (rex_plugin::get('yform', 'rest')->isAvailable()) {
52+
Api\Restful::init();
53+
}
54+
} else {
5055
Api\Restful::init();
5156
}
5257

0 commit comments

Comments
 (0)