Hi,
I am using MediaWiki 1.15 with mwlib 0.12.12.
When I export Wikipages with images (png, jpg) as DocBook XML I get
broken image links. The links in the exported XML file look like
this:
http://hostname/index.php?oldid=40
When I change the dbwriteImageLink method in the docbookwriter.py file
from:
imgsrc = self.environment.images.getURL(obj.target, obj.width or
None)
To:
imgsrc = self.environment.images.getURL(obj.target)
I get at least the wiki-page which describes the image:
http://hostname/index.php?title=File:image.jpg
But this is still not valid in DocBook XML, I need the direct link to
the image on the server, for example:
http://hostname/images/0/05/imagename.jpg
Does anyone of you have an idea how I can get the complete path to the
image on the server? The getURL method is in the nuwiki.py file. There
the imagelinks are built.
I tried and googled a lot ... without success. I really appreciate
every tip!
Thanks in advance,
Michael