From 42495b36a33baa6876a56028b4ca6db4bee9ef36 Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 14 Dec 2017 11:37:15 +0800 Subject: [PATCH] fix plugin version check --- var/Typecho/Plugin.php | 2 +- var/Widget/Plugins/Edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/var/Typecho/Plugin.php b/var/Typecho/Plugin.php index c9bea66a..a45b33af 100644 --- a/var/Typecho/Plugin.php +++ b/var/Typecho/Plugin.php @@ -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; diff --git a/var/Widget/Plugins/Edit.php b/var/Widget/Plugins/Edit.php index 1289c321..d001f9f0 100644 --- a/var/Widget/Plugins/Edit.php +++ b/var/Widget/Plugins/Edit.php @@ -128,7 +128,7 @@ class Widget_Plugins_Edit extends Widget_Abstract_Options implements Widget_Inte } else { - $result = _t('%s 无法在此版本的typecho下正常工作', $info['link'], $info['title']); + $result = _t('%s 无法在此版本的typecho下正常工作', $info['homepage'], $info['title']); }