[wiki/parser] latex.py: bufix ?

Ignore-this: bfdbde741234fc78e75e7d2d37c513d9

darcs-hash:20120414151344-bd074-c42af8e7f9ccb0c4dcc905a1755c64fbc99f1f73.gz
This commit is contained in:
Antoine Durand-Gasselin 2012-04-14 17:13:44 +02:00
parent a2b93e0a08
commit 52b00f312a

View file

@ -167,7 +167,7 @@ class Parser:
enctex = tex.encode('utf-8')
fn = latex_name_template % sha.new(enctex).hexdigest()
attachdir = AttachFile.getAttachDir(self.request, formatter.page.page_name, create=1)
attachdir = AttachFile.getAttachDir(self.request, self.request.page.page_name, create=1)
dst = "%s/%s%%d.png" % (attachdir, fn)
if not os.access(dst % 1, os.R_OK):
tmpdir = tempfile.mkdtemp()