Files
FreshRSS/app/views/entry/read.phtml
Alexandre Alapetite f2697be658 Avoid preg_replace for simple cases
Use the faster str_replace() and str_ireplace() instead.
From http://www.php.net/manual/function.str-replace.php : "If you don't
need fancy replacing rules (like regular expressions), you should always
use this function instead of preg_replace(). "
2013-08-31 12:09:36 +02:00

16 lines
325 B
PHTML
Executable File

<?php
if (Request::param ('is_read')) {
Request::_param ('is_read', 0);
} else {
Request::_param ('is_read', 1);
}
$url = Url::display (array (
'c' => Request::controllerName (),
'a' => Request::actionName (),
'params' => Request::params (),
));
echo json_encode (array ('url' => str_ireplace ('&amp;', '&', $url)));