mirror of https://github.com/halo-dev/halo
Reverse theme required version compatibility check (#1747)
Signed-off-by: johnniang <johnniang@fastmail.com>pull/1749/head
parent
1713be8daf
commit
628eb2f1ae
|
@ -133,8 +133,7 @@ public class ThemeRepositoryImpl
|
|||
}
|
||||
|
||||
// 2. check version compatibility
|
||||
// Not support current halo version.
|
||||
if (checkThemePropertyCompatibility(newProperty)) {
|
||||
if (!checkThemePropertyCompatibility(newProperty)) {
|
||||
throw new ThemeNotSupportException(
|
||||
"当前主题仅支持 Halo " + newProperty.getRequire() + " 及以上的版本");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue