Skip to content

Commit 3dc5c9a

Browse files
authoredMar 4, 2017
Merge pull request #4221 from tomkralidis/issue-16176-2.14
MetaSearch: fix help URL
2 parents ec80d9c + 090bf1b commit 3dc5c9a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎python/plugins/MetaSearch/util.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ def get_help_url():
133133
"""return QGIS MetaSearch help documentation link"""
134134

135135
locale_name = QSettings().value('locale/userLocale')[0:2]
136-
version = QGis.QGIS_VERSION[:3]
136+
major, minor = QGis.QGIS_VERSION.split('.')[:2]
137+
138+
if minor == '99': # master
139+
version = 'testing'
140+
else:
141+
version = '.'.join([major, minor])
137142

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

0 commit comments

Comments
 (0)