Skip to content
Snippets Groups Projects
Commit 342c693e authored by Bryan Tong Minh's avatar Bryan Tong Minh
Browse files

Fix version

parent eb6d65b0
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ class Page(object): ...@@ -64,7 +64,7 @@ class Page(object):
def can(self, action): def can(self, action):
level = self.protection.get(action, (action, ))[0] level = self.protection.get(action, (action, ))[0]
if level == 'sysop': level = compatibility.protectright(site.version) if level == 'sysop': level = compatibility.protectright(self.site.version)
return level in self.site.rights return level in self.site.rights
...@@ -254,7 +254,7 @@ class Image(Page): ...@@ -254,7 +254,7 @@ class Image(Page):
def imagehistory(self): def imagehistory(self):
return listing.PageProperty(self, 'imageinfo', 'ii', return listing.PageProperty(self, 'imageinfo', 'ii',
iiprop = compatibility.iiprop(site.version)) iiprop = compatibility.iiprop(self.site.version))
def imageusage(self, namespace = None, filterredir = 'all', redirect = False, def imageusage(self, namespace = None, filterredir = 'all', redirect = False,
limit = None, generator = True): limit = None, generator = True):
self.site.require(1, 11) self.site.require(1, 11)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment