Commit ca2da46c authored by Shakarim Sapa's avatar Shakarim Sapa

- Ашч

parent 229eea85
......@@ -17,7 +17,8 @@ class ReplaceController extends Controller
{
foreach($data as $i=>$item)
{
$item->text = str_replace('http://task-on.com/', 'https://task-on.com/', $item->text);
// $item->text = str_replace('http://task-on.com/', 'https://task-on.com/', $item->text);
$item->text = str_replace('https://task-on.com/', '/', $item->text);
if (!$item->save())
{
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