summaryrefslogtreecommitdiff
path: root/app/views/entry/read.phtml
blob: 9e79d4c07fb1ad0041a21b04e2061392ffef0a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
header('Content-Type: application/json; charset=UTF-8');

if (Minz_Request::param ('is_read', true)) {
	Minz_Request::_param ('is_read', 0);
} else {
	Minz_Request::_param ('is_read', 1);
}

$url = Minz_Url::display (array (
	'c' => Minz_Request::controllerName (),
	'a' => Minz_Request::actionName (),
	'params' => Minz_Request::params (),
));

echo json_encode (array ('url' => str_ireplace ('&amp;', '&', $url), 'icon' => FreshRSS_Themes::icon(Minz_Request::param ('is_read') ? 'unread' : 'read')));