Forum:Code Review:Extension:ImageSizeInfoFunctions

This is a tentative fix for mw:Extension:ImageSizeInfoFunctions over at mediawiki.org. The extension does not work in its current form and the maintainer and all other contributors appear to be gone. That's why I'm posting it here. There's no one at mediawiki.org to read it.

This extension is used heavily on the Fallout wiki and at least 50 % of their pages are broken right now. Having installed mediawiki 1.21 on my own machine I can confirm that the extension in its current form throws lots of exceptions. This my attempt of a rewrite. It works fine on my own machine (and under mediawiki 1.21), but that doesn't mean it's fit to be posted to mediawiki.org yet. I know next to nothing about the mediaWiki codebase, so there are probably some glaring errors. Take a look, please!

ImageSizeInfoFunctions.php

ImageSizeInfoFunctions.i18n.php

(The original code also adds a message, but it doesn't appear to use it all, so I dropped it.)