public function createRedirect($redirectsModel)
{
if (isset($redirectsModel)) {
/* -- Don't try to create a redirect if one already exists for the redirectSrcUrl */
if (!$this->getRedirectByRedirectSrcUrl($redirectsModel->redirectSrcUrlParsed, $redirectsModel->locale)) {
$result = new Retour_RedirectsRecord();
$result->setAttributes($redirectsModel->getAttributes(), false);
$result->save();
$error = $result->getErrors();
RetourPlugin::log(print_r($error, true), LogLevel::Info, false);
}
}
}