]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Reference the correct function.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 8 Nov 2016 23:24:00 +0000 (18:24 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 8 Nov 2016 23:24:00 +0000 (18:24 -0500)
xonstat/util.py

index 5430fe1a44fb8db9cdb524671d0e146e46e2651e..4ed6aeea18640cfebb88e3aaf984853472bf5629 100644 (file)
@@ -1,6 +1,7 @@
 import sys
 import logging
 import pyramid.httpexceptions
+import pyramid.url
 import re
 from colorsys import rgb_to_hls, hls_to_rgb
 from cgi import escape as html_escape
@@ -228,7 +229,7 @@ def limit_printable_characters(qstr, limit):
 
 
 def page_url(page):
-    return current_route_url(request, page=page, _query=request.GET)
+    return pyramid.url.current_route_url(request, page=page, _query=request.GET)
 
 
 def pretty_date(time=False):