diff --git a/plugins/php/index.py b/plugins/php/index.py
index a27bda582..6c9717457 100755
--- a/plugins/php/index.py
+++ b/plugins/php/index.py
@@ -149,9 +149,11 @@ def initReplace(version):
makePhpIni(version)
initD_path = getServerDir() + '/init.d'
- file_bin = initD_path + '/php' + version
if not os.path.exists(initD_path):
os.mkdir(initD_path)
+
+ file_bin = initD_path + '/php' + version
+ if not os.path.exists(file_bin):
file_tpl = getPluginDir() + '/init.d/php.tpl'
content = public.readFile(file_tpl)
diff --git a/static/app/soft.js b/static/app/soft.js
index 68aacb398..9d6b5b310 100755
--- a/static/app/soft.js
+++ b/static/app/soft.js
@@ -142,7 +142,7 @@ function getSList(isdisplay) {
var mupdate = '';//(plugin.versions[n] == plugin.updates[n]) '' : '更新 | ';
// if (plugin.versions[n] == '') mupdate = '';
- handle = mupdate + '设置 | 卸载';
+ handle = mupdate + '设置 | 卸载';
titleClick = 'onclick="softMain(\'' + plugin.name + '\',\'' + version_info + '\')" style="cursor:pointer"';
softPath = '';
@@ -264,8 +264,8 @@ function addVersion(name, ver, type, obj, title) {
}
//卸载软件
-function uninstallVersion(name, version, title) {
- layer.confirm(msgTpl('您真的要卸载[{1}-{2}]吗?', [title, version]), { icon: 3, closeBtn: 2 }, function() {
+function uninstallVersion(name, version) {
+ layer.confirm(msgTpl('您真的要卸载[{1}-{2}]吗?', [name, version]), { icon: 3, closeBtn: 2 }, function() {
var data = 'name=' + name + '&version=' + version;
var loadT = layer.msg(lan.public.the, { icon: 16, time: 0, shade: [0.3, '#000'] });
$.post('/plugins/uninstall', data, function(rdata) {