Refactor file structure so that the extension can be loaded using MW 1.25+ style wfLoadExtension()
, and makes MW 1.25+ a requirement. Otherwise the core functionality should remain just as it was (i.e., if it doesn’t, that’s unintentional on my part).
This closes issue #3.
Since MediaWiki 1.25, the suggested method of registering extensions has been to use wfLoadExtension()
instead of a direct require_once
. AddBodyClass currently (v1.2.0 from 2016-03-21) still uses the old style, so I’m opening this issue to suggest converting the extension to use the new method.
I’m also preparing a pull request with the minimal changes that I think should accomplish this, and I’ll post it next.
Sumana: Thanks. I’m fairly new here and to Git in general, so I’d rather not, but it’s fine by me if Pranav wants to.
I learned that hard #redirect does not support templates, magic words or being wrapped inside conditionals. I’d find any of those features useful in my own wiki, so my questions are:
- Are the limitations based on technical difficulties of implementation, or are they design decisions based on security implications?
- Would it be possible to implement support for said features in an extension, or better yet, are there known extensions to do this?
The wiki that I’m running is limited to my own personal use, so I wouldn’t have to worry about security implications for multiuser MW installations.
[[Special:ChangeEmail]] currently says: ”Complete this form to change your e-mail address. You will need to enter your password to confirm this change.”
The password field is located right after the ”New e-mail address” field and simply titled ”Password:”. The preface and this layout makes it unnecessarily easy to think it wants your ”password for your e-mail account” and not the current wiki. (I for one momentarily thought so despite being experienced enough to know it probably didn’t mean to.)
I suggest the ”Password:” header be changed slightly, to say ”Your {{SITENAME}} password:”