]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/template_helper.py
Json is now loaded with Ajax.
[philipp/winterrodeln/wradmin.git] / wradmin / template_helper.py
index a35b2348ebd4380ba418c7130db4a3a2d86d6538..f7fc01c8eccd86b69afef85a824fe5efd222f892 100644 (file)
@@ -1,4 +1,4 @@
-from flask import url_for
+from flask import url_for, current_app
 import wrpylib.wrvalidators
 
 
@@ -16,12 +16,12 @@ class PylonsHelper:
         """Creates a link to the specified page in the www.winterrodeln.org wiki"""
         if page_title is None:
             page_title = 'Hauptseite'
-        return 'https://www.winterrodeln.org/wiki/' + page_title
+        return current_app.config['MEDIAWIKI_WIKI'] + '/' + page_title
 
     def forum(self, forum=None):
         """Creates a link to the specified forum. If no id is given, a general link is created."""
         if forum is None:
-            return 'http://winterrodeln-forum.org/'
+            return 'https://winterrodeln-forum.org/'
         return 'https://winterrodeln-forum.org/viewforum.php?f={}'.format(forum)
 
     def google_maps(self, latitude, longitude):