--- a/web/views/urlrewrite.py Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/urlrewrite.py Tue Dec 08 16:50:36 2009 +0100
@@ -207,9 +207,9 @@
continue
if isinstance(inputurl, basestring):
if inputurl == uri:
- return callback(inputurl, uri, req, self._cw.schema)
+ return callback(inputurl, uri, req, self._cw.vreg.schema)
elif inputurl.match(uri): # it's a regexp
- return callback(inputurl, uri, req, self._cw.schema)
+ return callback(inputurl, uri, req, self._cw.vreg.schema)
else:
self.debug("no schemabased rewrite rule found for %s", uri)
raise KeyError(uri)