aboutsummaryrefslogtreecommitdiff
path: root/app/views/entry/bookmark.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/entry/bookmark.phtml')
-rw-r--r--app/views/entry/bookmark.phtml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/entry/bookmark.phtml b/app/views/entry/bookmark.phtml
index 192e805a0..81647352c 100644
--- a/app/views/entry/bookmark.phtml
+++ b/app/views/entry/bookmark.phtml
@@ -4,16 +4,16 @@ declare(strict_types=1);
header('Content-Type: application/json; charset=UTF-8');
-$url = array(
+$url = [
'c' => Minz_Request::controllerName(),
'a' => Minz_Request::actionName(),
'params' => $_GET,
-);
+];
$url['params']['is_favorite'] = (Minz_Request::paramTernary('is_favorite') ?? true) ? '0' : '1';
FreshRSS::loadStylesAndScripts();
-echo json_encode(array(
- 'url' => str_ireplace('&', '&', Minz_Url::display($url)),
- 'icon' => _i($url['params']['is_favorite'] === '1' ? 'non-starred' : 'starred')
- ));
+echo json_encode([
+ 'url' => str_ireplace('&', '&', Minz_Url::display($url)),
+ 'icon' => _i($url['params']['is_favorite'] === '1' ? 'non-starred' : 'starred')
+]);