Hello,
We would like some help in figuring out the quickest and easiest way to disable link checking in the mediawiki software. By this I mean that when rendering a page, there is a check to see if the original image exists. If it's found, a link is constructed to the appropriate thumbnail size. If not, an upload link is constructed instead. It would be a great help to us if someone familiar with the code could give us some info on the best way to force it to construct the image link even if it's not there when it's rendered. I hope this is clear enough. If not, I'll try to clarify.
Brent Widernet.org
On Wed, Jul 7, 2010 at 7:49 PM, Brent Palmer bop@brentopalmer.com wrote:
Hello,
We would like some help in figuring out the quickest and easiest way to disable link checking in the mediawiki software. By this I mean that when rendering a page, there is a check to see if the original image exists. If it's found, a link is constructed to the appropriate thumbnail size. If not, an upload link is constructed instead. It would be a great help to us if someone familiar with the code could give us some info on the best way to force it to construct the image link even if it's not there when it's rendered. I hope this is clear enough. If not, I'll try to clarify.
The code is located in includes/Linker.php in the makeImageLinkObj and makeImageLink2 functions. There appears to be no straightforward way to achieve the desired function without modifying the source code.
Bryan
Brent Palmer wrote:
Hello,
We would like some help in figuring out the quickest and easiest way to disable link checking in the mediawiki software. By this I mean that when rendering a page, there is a check to see if the original image exists. If it's found, a link is constructed to the appropriate thumbnail size. If not, an upload link is constructed instead. It would be a great help to us if someone familiar with the code could give us some info on the best way to force it to construct the image link even if it's not there when it's rendered. I hope this is clear enough. If not, I'll try to clarify.
Brent Widernet.org
Why do you need that? You could probably import all the images on the taget folder using maintenance/importImage.php Or perhaps you were looking for $wgGenerateThumbnailOnParse
http://www.mediawiki.org/wiki/Manual:$wgGenerateThumbnailOnParse
Brent Palmer schrieb:
Hello,
We would like some help in figuring out the quickest and easiest way to disable link checking in the mediawiki software.
I guess one way would be to implement a FileRepo (includes/filerepo/FileRepo.php) that simply pretends that all files exist.
-- daniel
wikitech-l@lists.wikimedia.org