_call_shortener should take 2 more args

This commit is contained in:
jesopo 2020-03-08 23:59:31 +00:00
parent 0cdd3d5b6c
commit b3a18da182

View file

@ -25,7 +25,7 @@ class Module(ModuleManager.BaseModule):
if not extended == None: if not extended == None:
return True, extended return True, extended
return False, self.exports.get("shorturl-s-%s" % name, None) return False, self.exports.get("shorturl-s-%s" % name, None)
def _call_shortener(self, shortener_name, url): def _call_shortener(self, server, context, shortener_name, url):
extended, shortener = self._get_shortener(shortener_name) extended, shortener = self._get_shortener(shortener_name)
if shortener == None: if shortener == None:
return None return None