mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
improve plugin checkMainApplicationVersion
This commit is contained in:
@@ -65,6 +65,7 @@ class Plugin
|
||||
if (class_exists($className)) {
|
||||
$constantName = "$className::COMPATIBLE_NP_VERSION";
|
||||
if (defined($constantName) && version_compare(VERSION_NUMBER, constant($constantName), '<')) {
|
||||
do_log(sprintf("class: %s require NP_VERSION: %s > current: %s", $className, constant($constantName), VERSION_NUMBER), "error");
|
||||
continue;
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user