summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/conf/__init__.py3
-rw-r--r--askbot/skins/default/templates/main_page/tab_bar.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/askbot/conf/__init__.py b/askbot/conf/__init__.py
index 9892a2a4..026a6185 100644
--- a/askbot/conf/__init__.py
+++ b/askbot/conf/__init__.py
@@ -31,5 +31,4 @@ def should_show_sort_by_relevance():
"""True if configuration support sorting
questions by search relevance
"""
- return True
- #return ('postgresql_psycopg2' in askbot.get_database_engine_name())
+ return ('postgresql_psycopg2' in askbot.get_database_engine_name())
diff --git a/askbot/skins/default/templates/main_page/tab_bar.html b/askbot/skins/default/templates/main_page/tab_bar.html
index 80a4b95f..7a51aa94 100644
--- a/askbot/skins/default/templates/main_page/tab_bar.html
+++ b/askbot/skins/default/templates/main_page/tab_bar.html
@@ -19,7 +19,7 @@
{% set relevance_label = gettext('relevance') %}
{% if query %}
<a id="by_relevance"
- {% if sortMethod == "relevance-desc" %}
+ {% if sort == "relevance-desc" %}
href="{% url questions %}{{ query_string|replace_in_url("sort:relevance-desc") }}"
class="on"
title="{{asc_relevance_tooltip}}"><span>{{relevance_label}} &#9660;</span>