diff options
| author | 2012-10-25 15:42:06 +0200 | |
|---|---|---|
| committer | 2012-10-25 15:42:06 +0200 | |
| commit | d21c1bb13875189ab25f7bce4f05cc3fedaa4904 (patch) | |
| tree | 43bc5ca4c728756ac2fa7ede42b50885ae171300 /app/views/entry/read.phtml | |
| parent | e5767a7fae6e1463727987e09f1c592a8a86577b (diff) | |
correction marquage des articles en js
Diffstat (limited to 'app/views/entry/read.phtml')
| -rwxr-xr-x | app/views/entry/read.phtml | 15 |
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 ('#&#i', '&', $url))); |
