aboutsummaryrefslogtreecommitdiff
path: root/app/views/entry/read.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/entry/read.phtml')
-rwxr-xr-xapp/views/entry/read.phtml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/entry/read.phtml b/app/views/entry/read.phtml
new file mode 100755
index 000000000..4d0a84f45
--- /dev/null
+++ b/app/views/entry/read.phtml
@@ -0,0 +1,15 @@
+<?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' => preg_replace ('#&amp;#i', '&', $url)));