diff options
author | Tomasz Zielinski <tomasz.zielinski@pyconsultant.eu> | 2012-01-12 23:45:19 +0100 |
---|---|---|
committer | Tomasz Zielinski <tomasz.zielinski@pyconsultant.eu> | 2012-01-12 23:45:19 +0100 |
commit | 4b3bc55042499ca9096c4d1ed4a65ad36cd74868 (patch) | |
tree | fbc8ee436c8b2e55f216ce976af6fdbd495ac6b3 | |
parent | de2bfcb341acab31a8922d407b1efe756d09bbee (diff) | |
download | askbot-4b3bc55042499ca9096c4d1ed4a65ad36cd74868.tar.gz askbot-4b3bc55042499ca9096c4d1ed4a65ad36cd74868.tar.bz2 askbot-4b3bc55042499ca9096c4d1ed4a65ad36cd74868.zip |
Bugfixes to the previous commit
-rw-r--r-- | askbot/conf/__init__.py | 3 | ||||
-rw-r--r-- | askbot/skins/default/templates/main_page/tab_bar.html | 2 |
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}} ▼</span> |