Skip to content

Commit

Permalink
Merge pull request #4217 from tomkralidis/issue-16176-2.18
Browse files Browse the repository at this point in the history
MetaSearch: fix help URL
  • Loading branch information
tomkralidis authored Mar 4, 2017
2 parents 067df25 + fbe8459 commit 7738758
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 @@ -133,7 +133,12 @@ def get_help_url():
"""return QGIS MetaSearch help documentation link"""

locale_name = QSettings().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 7738758

Please sign in to comment.