A brand new implementation, isBoxVersionOk()

This commit is contained in:
Yağızhan authored and GitHub committed 2020-11-21 11:55:59 +03:00
1 parent c8e7668272
commit 237ee9ea9c
1 file changed
+10 -1
+10 -1
View File
@@ -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);
}
}
}