} elseif (!$io->Rename($documentRoot . $pathFrom, $documentRoot . $pathTo)) { $lAdmin->AddGroupError(GetMessage("FILEMAN_RENAME_ERROR") . " \"" . $pathFrom . "\" " . GetMessage("FILEMAN_RENAME_IN") . " \"" . $pathTo . "\"", $ID); } else { // File was successfully renamed $module_id = "fileman"; if (COption::GetOptionString($module_id, "log_page", "Y") == "Y") { $res_log['path'] = substr($pathTo, 1); if (is_dir($documentRoot . $pathTo)) { CEventLog::Log("content", "SECTION_RENAME", "fileman", "", serialize($res_log)); } else { CEventLog::Log("content", "FILE_RENAME", "fileman", "", serialize($res_log)); } } if ($bSearch) { // Rename item in search result DB CFilemanSearch::RenameInSearchResult($searchSess, $pathFrom, $pathTo); } $APPLICATION->CopyFileAccessPermission($arPath_i, array($site, $pathTo)); $APPLICATION->RemoveFileAccessPermission($arPath_i); } } } } } $handle_action = false; } // Handling actions: group and single if (($arID = $lAdmin->GroupAction()) && ($USER->CanDoOperation('fileman_admin_files') || $USER->CanDoOperation('fileman_admin_folders')) && $handle_action) { if ($_REQUEST['action_target'] == 'selected') { $arID = array(); if ($bSearch) {