diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 1a5cbe6cc..b27dda6c2 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -523,7 +523,7 @@ class Poche $this->pagination->page_links('?view=' . $view . '?search=' . $search . '&sort=' . $_SESSION['sort'] . '&' )); $tpl_vars['page_links'] = $page_links; $tpl_vars['nb_results'] = $count; - $tpl_vars['search_term'] = $search; + $tpl_vars['searchterm'] = $search; } break; case 'view': diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 5f097f3f7..84fc8e8bb 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -21,7 +21,7 @@ {% elseif view == 'fav' %}{% trans "No articles favourited" %} {% elseif view == 'archive' %}{% trans "No articles marked as read" %} {% elseif view == 'tags' %}{% trans "No articles with this tag found" %} - {% elseif search_term is defined %} {% trans %}No articles found for « {{ search_term }} »{% endtrans %} + {% elseif searchterm is defined %} {% trans %}No articles found for « {{ searchterm }} »{% endtrans %} {% else %}{% trans "No articles found" %}{% endif %}
{% else %} @@ -41,8 +41,8 @@ {{ nb_results }} {% trans "articles marked as read" %} {% elseif view == 'tag' %} {{ nb_results }} {% trans "articles with this tag" %} - {% elseif search_term is defined %}{{ nb_results }} - {% trans %}articles found for « {{ search_term }} »{% endtrans %} + {% elseif searchterm is defined %} + {{ nb_results }} {% trans %}articles found for « {{ searchterm }} »{% endtrans %} {% else %} {{ nb_results }} {% trans "articles" %} {% endif %} @@ -58,7 +58,7 @@ {% elseif view == 'fav' %}{% trans "Just one article favourited" %} {% elseif view == 'archive' %}{% trans "One article marked as read" %} {% elseif view == 'tag' %}{% trans "One article with this tag" %} - {% elseif search_term is defined %}{% trans %}Only one result found for « {{ search_term }} »{% endtrans %} + {% elseif searchterm is defined %}{% trans %}Only one result found for « {{ searchterm }} »{% endtrans %} {% else %}{% trans "One article found" %}{% endif %} {% endif %} @@ -91,20 +91,20 @@ {% if tag %}{% trans "Mark all articles from this tag as read" %}