-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make 1.0.2 release #6
Conversation
* Internal rearragement of code * Improved code formatting * Improved file documentation
If this changes backwards compatibility I'd rather up the version to a major 2.xx. Haven't tested it yet but I will try to do so tonight or sometime tomorrow. |
No, it does not so the version should be fine. This just a new file distribution for the "old system". I found out that we can do a version which would be able to serve both "old" and "new system". That should be a 2.x.x The one breaking with the "old" system should be 3.x.x. The latter fits best with with MW 1.31+ I guess so there is still some time. |
Missed this completely. Could you test the new method Sam pr'd. I just merged it in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest that the PurgeActionExtension class should follow common MediaWiki layout and be called MediaWiki\Extension\Purge\Hooks
and moved to the includes/
directory of the extension.
* | ||
*/ | ||
|
||
class PurgeActionExtension{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Class name should match the filename.
- Space required before the brace.
$skin->getRelevantTitle() : $skin->getTitle(); | ||
if ( $title->getNamespace() !== NS_SPECIAL && $wgUser->isAllowed( 'purge' ) ) { | ||
$action = $wgRequest->getText( 'action' ); | ||
$content_actions['actions']['purge'] = array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short array syntax should be used.
1.0.2 is already out, thus abandoning. |
This is in preparation to switch to extension registration and refers to issue #3.