Skip to content

Commit 7ba0e5e

Browse files
committed
修正细节
1 parent 993e330 commit 7ba0e5e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

UploadPlugin/Plugin.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ public static function activate()
2323
throw new Typecho_Plugin_Exception(_t('对不起, 您的服务器不支持 ZipArchive 类, 无法正常使用此插件'));
2424
}
2525
if(!is_writable(__TYPECHO_PLUGIN_DIR__)){
26-
<<<<<<< HEAD
27-
//throw new Typecho_Plugin_Exception(_t('插件目录无写入权限, 无法正常使用此插件'));
26+
throw new Typecho_Plugin_Exception(_t('插件目录无写入权限, 无法正常使用此插件'));
2827
}
2928
if(!function_exists('file_put_contents') && !function_exists('fopen')){
3029
throw new Typecho_Plugin_Exception(_t('file_put_contents、fopen函数被禁用, 无法正常使用此插件'));
31-
=======
3230
throw new Typecho_Plugin_Exception(_t('插件目录无写入权限, 无法正常使用此插件'));
33-
>>>>>>> bbd8eb6e279f1bd0ba8de67dff54eee82b6193e1
3431
}
3532
Helper::addPanel(1, 'UploadPlugin/panel.php', _t('上传'), _t('在线插件管理'), 'administrator');
3633
Helper::addAction('upload-plugin', 'UploadPlugin_Action');

0 commit comments

Comments
 (0)