DieFeM 9 лет назад
Родитель
Сommit
aa6c9d4227
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      modules/update/updating.php

+ 2 - 2
modules/update/updating.php

@@ -245,9 +245,9 @@ function exec_ogp_module()
 					//unlink( $temp_dwl );
 				
 				// Remove files that are not related to the panel
-				if( file_exists( $baseDir . DIRECTORY_SEPARATOR . "hldstart-code-${version}" ) )
+				if( file_exists( $baseDir . DIRECTORY_SEPARATOR . $unwanted_path ) )
 				{
-					rmdir_recurse( $baseDir . DIRECTORY_SEPARATOR . "hldstart-code-${version}" );
+					rmdir_recurse( $baseDir . DIRECTORY_SEPARATOR . $unwanted_path );
 				}
 
 				echo "<br>\n<h4>" . updating_modules ."</h4>\n";