Skip to content

Commit

Permalink
MetaSearch: fix help URL (http://hub.qgis.org/issues/16176)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Mar 5, 2017
1 parent 19e6015 commit 6822d6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/plugins/MetaSearch/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ def get_help_url():
"""return QGIS MetaSearch help documentation link"""

locale_name = QgsSettings().value('locale/userLocale')[0:2]
version = Qgis.QGIS_VERSION.rsplit('.', 1)[0]
major, minor = QGis.QGIS_VERSION.split('.')[:2]

if minor == '99': # master
version = 'testing'
else:
version = '.'.join([major, minor])

path = '%s/%s/docs/user_manual/plugins/plugins_metasearch.html' % \
(version, locale_name)
Expand Down

0 comments on commit 6822d6b

Please sign in to comment.