diff --git a/includes/Extensions/Batch55.php b/includes/Extensions/Batch55.php index 9b95bdd..a1193a6 100644 --- a/includes/Extensions/Batch55.php +++ b/includes/Extensions/Batch55.php @@ -1,7 +1,10 @@ 'object', 'properties' => $props ?: new \stdClass()]; @@ -26,7 +29,9 @@ class Batch55 { } public static function detect(array $args): array { - return ['active' => defined('BLOCKSY_COMPANION_VERSION'), 'version' => defined('BLOCKSY_COMPANION_VERSION') ? BLOCKSY_COMPANION_VERSION : null]; + $active = defined('BLOCKSY_COMPANION_VERSION') || defined('BLOCKSY_PATH'); + $ver = defined('BLOCKSY_COMPANION_VERSION') ? BLOCKSY_COMPANION_VERSION : (defined('BLOCKSY_VERSION') ? BLOCKSY_VERSION : null); + return ['active' => $active, 'version' => $ver]; } public static function listContentBlocks(array $args): array {