mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix удаления плагинов
This commit is contained in:
parent
785182ec60
commit
53df204709
|
@ -55,7 +55,7 @@ class ActionAdmin extends Action {
|
|||
if (isPost('submit_plugins_del')) {
|
||||
$this->Security_ValidateSendForm();
|
||||
|
||||
$aPluginsDelete=getRequest('plugins_del');
|
||||
$aPluginsDelete=getRequest('plugin_del');
|
||||
if (is_array($aPluginsDelete)) {
|
||||
$this->Plugin_Delete(array_keys($aPluginsDelete));
|
||||
}
|
||||
|
|
|
@ -251,7 +251,7 @@ function func_rmdir($sPath) {
|
|||
|
||||
if ($aFiles = glob($sPath.'*', GLOB_MARK)) {
|
||||
foreach($aFiles as $sFile ) {
|
||||
if(substr($sFile, -1) == '/') {
|
||||
if (is_dir($sFile)) {
|
||||
func_rmdir($sFile);
|
||||
} else {
|
||||
@unlink($sFile);
|
||||
|
|
Loading…
Reference in a new issue