]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/updates/startup.py
Fix OSQA-819: Link to profile in message is wrong if OSQA is installed in a subfolder
[osqa.git] / forum_modules / updates / startup.py
index f49d10697696c91c059b23d14572d247411b186b..06d423c7c45d9c31fa367bfbd9bdf53525470417 100644 (file)
@@ -6,7 +6,7 @@ import settings
 from xml.dom.minidom import parse, parseString
 from xml.parsers.expat import ExpatError
 from forum.modules import ui, decorate
-from forum.settings import SVN_REVISION
+from forum.settings import VCS_REVISION
 from django.contrib.auth.middleware import AuthenticationMiddleware
 from django.core.exceptions import ObjectDoesNotExist
 from django.utils.encoding import smart_str
@@ -26,7 +26,7 @@ def process_request(result, self, request):
         for message in messages:
             # Get the SVN Revision
             try:
-                svn_revision = int(SVN_REVISION.replace('SVN-', ''))
+                svn_revision = int(VCS_REVISION.replace('SVN-', ''))
             except ValueError:
                 # Here we'll have to find another way of getting the SVN revision
                 svn_revision = 0
@@ -50,4 +50,4 @@ def process_request(result, self, request):
     except ExpatError:
         pass
 
-    return result
\ No newline at end of file
+    return result