From 35a7a4f3136ab35fbc31a983c2207cf9ecdffb1d Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Wed, 5 Oct 2016 13:48:50 +0200
Subject: [PATCH] Use the correct query variable

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 core/search/js/search.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/search/js/search.js b/core/search/js/search.js
index e75060479b6..559fbcf9adf 100644
--- a/core/search/js/search.js
+++ b/core/search/js/search.js
@@ -217,7 +217,7 @@
 					$status.addClass('emptycontent').removeClass('status');
 					$status.html('');
 					$status.append('<div class="icon-search"></div>');
-					$status.append('<h2>' + t('core', 'No search results in other folders {filter}', {filter:this._filter}) + '</h2>');
+					$status.append('<h2>' + t('core', 'No search results in other folders {filter}', {filter:lastQuery}) + '</h2>');
 				} else {
 					$status.removeClass('emptycontent').addClass('status');
 					$status.text(n('core', '{count} search result in another folder', '{count} search results in other folders', count, {count:count}));
-- 
GitLab