getValue(PrmMng::PARAM_REPLACE_ENGINE) === DUPX_S3_Funcs::MODE_SKIP || $paramsManager->getValue(PrmMng::PARAM_SKIP_PATH_REPLACE) === false ) { return self::LV_SKIP; } $archivePaths = DUPX_ArchiveConfig::getInstance()->getRealValue("archivePaths"); if (strlen($archivePaths->home) == 0) { // if new path is equal at old path the replace isn't necessary so skip message if (strlen($paramsManager->getValue(PrmMng::PARAM_PATH_NEW)) === 0) { return self::LV_SKIP; } $this->message = "It was found that the home path of the source was equal to '/'. In this case it's" . " impossible to automatically replace paths, because of that path replacements have been disabled."; } return self::LV_HARD_WARNING; } public function getTitle() { return 'Replace PATHs in database'; } protected function hwarnContent() { return dupxTplRender( 'parts/validation/tests/replace-paths', array( "message" => $this->message, "isOk" => false ), false ); } }