1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

fix удаления плагинов

This commit is contained in:
Mzhelskiy Maxim 2010-05-02 08:45:46 +00:00
parent 785182ec60
commit 53df204709
2 changed files with 2 additions and 2 deletions

View file

@ -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));
}

View file

@ -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);