Commit f538486b authored by Shakarim Sapa's avatar Shakarim Sapa

- Обновляем записи

parent 44d1b5b7
......@@ -52,7 +52,7 @@ class ReplaceController extends Controller
{
// $item->text = str_replace('http://task-on.com/', 'https://task-on.com/', $item->text);
$item->text = str_replace('http', 'https', $item->text);
if ($item->update()===false)
if ($item->save()===false)
{
throw new ServerErrorHttpException(current(current($item->getErrors())));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment