aboutsummaryrefslogtreecommitdiff
path: root/app/views/entry/read.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 15:42:06 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 15:42:06 +0200
commitd21c1bb13875189ab25f7bce4f05cc3fedaa4904 (patch)
tree43bc5ca4c728756ac2fa7ede42b50885ae171300 /app/views/entry/read.phtml
parente5767a7fae6e1463727987e09f1c592a8a86577b (diff)
correction marquage des articles en js
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)));