fixed issue 1241 with auth.wiki content error, thanks Alan
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.1-alpha.1+timestamp.2012.12.24.11.20.54
|
Version 2.4.1-alpha.1+timestamp.2012.12.24.11.22.50
|
||||||
|
|||||||
+4
-1
@@ -3325,7 +3325,10 @@ class Auth(object):
|
|||||||
if resolve:
|
if resolve:
|
||||||
action = str(current.request.args(0)).startswith("_")
|
action = str(current.request.args(0)).startswith("_")
|
||||||
if slug and not action:
|
if slug and not action:
|
||||||
wiki = self._wiki.read(slug)['content']
|
wiki = self._wiki.read(slug)
|
||||||
|
if isinstance(wiki, dict) and wiki.has_key('content'):
|
||||||
|
# We don't want to return a dict object, just the wiki
|
||||||
|
wiki = wiki['content']
|
||||||
else:
|
else:
|
||||||
wiki = self._wiki()
|
wiki = self._wiki()
|
||||||
if isinstance(wiki, basestring):
|
if isinstance(wiki, basestring):
|
||||||
|
|||||||
Reference in New Issue
Block a user