Extension talk:ImageSizeInfoFunctions/Archive

Improved usage and stability
I suggest to modify the code so that

$title = Title::makeTitle(NS_IMAGE,$image);

(which assumes that the image name is a safe database key), becomes:

$title = Title::newFromText($image,NS_IMAGE);

(which supports non-normalized image names and image names already with a "File:" namespace prefix)

Based on this change, a new template can be created which largely mirrors the normal way of embedding images, mirroring all (or most?) functionality. See Extension talk:ImageSizeInfoFunctions/Template:Image for example code. --G.Hagedorn 00:03, 16 December 2008 (UTC)


 * It sounds right. Thanks for your suggestions, I'll test them as soon as possible on my wiki. --GB 20:44, 4 January 2009 (UTC)