1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Fixes #1205 - plugin folder wipe issue.

This commit is contained in:
Cameron
2015-10-16 14:23:23 -07:00
parent 6ec85f5c0f
commit 790d408587

View File

@@ -788,13 +788,14 @@ class pluginManager{
e107::getLog()->add('PLUGMAN_03', $logInfo, E_LOG_INFORMATIVE, ''); e107::getLog()->add('PLUGMAN_03', $logInfo, E_LOG_INFORMATIVE, '');
} }
if($_POST['delete_files']) if(!empty($_POST['delete_files']) && ($plug['plugin_installflag'] == true))
{ {
include_once(e_HANDLER.'file_class.php'); if(!empty($eplug_folder))
$fi = new e_file; {
$result = $fi->rmtree(e_PLUGIN.$eplug_folder); $result = e107::getFile()->rmtree(e_PLUGIN.$eplug_folder);
$text .= ($result ? '<br />'.EPL_ADLAN_86.e_PLUGIN.$eplug_folder : '<br />'.EPL_ADLAN_87.'<br />'.EPL_ADLAN_31.' <b>'.e_PLUGIN.$eplug_folder.'</b> '.EPL_ADLAN_32); $text .= ($result ? '<br />'.EPL_ADLAN_86.e_PLUGIN.$eplug_folder : '<br />'.EPL_ADLAN_87.'<br />'.EPL_ADLAN_31.' <b>'.e_PLUGIN.$eplug_folder.'</b> '.EPL_ADLAN_32);
} }
}
else else
{ {
$text .= '<br />'.EPL_ADLAN_31.' <b>'.e_PLUGIN.$eplug_folder.'</b> '.EPL_ADLAN_32; $text .= '<br />'.EPL_ADLAN_31.' <b>'.e_PLUGIN.$eplug_folder.'</b> '.EPL_ADLAN_32;