mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 09:59:41 +01:00
fix plugin version check
This commit is contained in:
parent
2e9f64a7f7
commit
42495b36a3
var
@ -370,7 +370,7 @@ class Typecho_Plugin
|
||||
|
||||
$items = array_map('trim', explode('-', $versionRange));
|
||||
if (count($items) < 2) {
|
||||
$items[1] = $items[0];
|
||||
$items[1] = '9999.9999.9999';
|
||||
}
|
||||
|
||||
list ($minVersion, $maxVersion) = $items;
|
||||
|
@ -128,7 +128,7 @@ class Widget_Plugins_Edit extends Widget_Abstract_Options implements Widget_Inte
|
||||
|
||||
} else {
|
||||
|
||||
$result = _t('<a href="%s">%s</a> 无法在此版本的typecho下正常工作', $info['link'], $info['title']);
|
||||
$result = _t('<a href="%s">%s</a> 无法在此版本的typecho下正常工作', $info['homepage'], $info['title']);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user