From 237ee9ea9c2f8ffe4b63ca11e65341b7de1972d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1zhan?= Date: Sat, 21 Nov 2020 11:55:59 +0300 Subject: [PATCH] A brand new implementation, isBoxVersionOk() --- src/bb-library/Box/Requirements.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bb-library/Box/Requirements.php b/src/bb-library/Box/Requirements.php index e8c31c49a..3263f7a83 100644 --- a/src/bb-library/Box/Requirements.php +++ b/src/bb-library/Box/Requirements.php @@ -110,6 +110,15 @@ class Box_Requirements implements \Box\InjectionAwareInterface return version_compare($current, $required, '>='); } + public function isBoxVersionOk() + { + $current = Box_Version::VERSION; + if ($current == "0.0.1") { + return false; + } + return true; + } + /** * What extensions must be loaded for BoxBilling o function correctly */ @@ -199,4 +208,4 @@ class Box_Requirements implements \Box\InjectionAwareInterface return ($configmod == $perm); } -} \ No newline at end of file +}