http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90738
Revision: 90738
Author: bawolff
Date: 2011-06-24 21:36:23 +0000 (Fri, 24 Jun 2011)
Log Message:
-----------
follow-up r90737 - also normalize 'createtalk' for good measure.
Note, atm not such a big deal as there are no direct uses of 'createtalk'
permission
but good to check for potential future bugs.
Modified Paths:
--------------
trunk/extensions/TitleBlacklist/TitleBlacklist.hooks.php
Modified: trunk/extensions/TitleBlacklist/TitleBlacklist.hooks.php
===================================================================
--- trunk/extensions/TitleBlacklist/TitleBlacklist.hooks.php 2011-06-24
21:25:50 UTC (rev 90737)
+++ trunk/extensions/TitleBlacklist/TitleBlacklist.hooks.php 2011-06-24
21:36:23 UTC (rev 90738)
@@ -29,7 +29,7 @@
# Some places check createpage, while others check create.
# As it stands, upload does createpage, but normalize both
# to the same action, to stop future similar bugs.
- if( $action === 'createpage' ) {
+ if( $action === 'createpage' || $action === 'createtalk' ) {
$action = 'create';
}
if( $action == 'create' || $action == 'edit' || $action ==
'upload' ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs