aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-11-17 18:32:56 +0100
committerGravatar GitHub <noreply@github.com> 2025-11-17 18:32:56 +0100
commitf5d14af156884250c3445cbc82e4d4fd5771ff31 (patch)
treeb81d1a49e85a2cef289021578d67732f87fe6969 /app/Controllers/indexController.php
parentdeb7633c4932d1838cb0a67aebdab5e37aae7206 (diff)
Show search query in the page title (#8217)
* Show search query in the page title * Simplify encoding --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Controllers/indexController.php')
-rw-r--r--app/Controllers/indexController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index 59302d3f1..bfa1eb521 100644
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -104,6 +104,10 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
$this->view->rss_title = FreshRSS_Context::$name . ' | ' . FreshRSS_View::title();
$title = FreshRSS_Context::$name;
+ $search = Minz_Request::paramString('search');
+ if ($search !== '') {
+ $title = '“' . $search . '”';
+ }
if (FreshRSS_Context::$get_unread > 0) {
$title = '(' . FreshRSS_Context::$get_unread . ') ' . $title;
}