Hi everybody,
i would like to change the Media tag to point to external editing of wiki media files, for example:
[[Media:my_file.pdf]]
now generates a link like:
http://myserver/images/d/d3/my_file.pdf
but i have configured external file editing and would like a link like:
http://myserver/index.php?title=Image:my_file.pdf&action=edit&extern...
I have tried to code in includes/parser/Parser.php (function replaceInternalLinks) with no success.
Could somebody point me to the right direction?
thank you, Gregor
On 3/24/09 3:55 AM, Gregor Rot wrote:
i would like to change the Media tag to point to external editing of wiki media files, for example:
[[Media:my_file.pdf]]
now generates a link like:
http://myserver/images/d/d3/my_file.pdf
but i have configured external file editing and would like a link like:
http://myserver/index.php?title=Image:my_file.pdf&action=edit&extern...
I have tried to code in includes/parser/Parser.php (function replaceInternalLinks) with no success.
Could somebody point me to the right direction?
Well, that's where I'd be looking. Find the bit that handles links with NS_MEDIA and change it... then make sure you're not looking at cached renderings with the original parser. :)
-- brion
wikitech-l@lists.wikimedia.org