mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-05 06:56:14 -05:00
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(). "
16 lines
325 B
PHTML
Executable File
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 ('&', '&', $url)));
|