mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Fixes #1205 - plugin folder wipe issue.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user