http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84602
Revision: 84602
Author: reedy
Date: 2011-03-23 16:30:49 +0000 (Wed, 23 Mar 2011)
Log Message:
-----------
Invert match call for whitelist also
Add missing false to return documentation
Modified Paths:
--------------
trunk/extensions/TitleBlacklist/TitleBlacklist.list.php
Modified: trunk/extensions/TitleBlacklist/TitleBlacklist.list.php
===================================================================
--- trunk/extensions/TitleBlacklist/TitleBlacklist.list.php 2011-03-23
16:27:54 UTC (rev 84601)
+++ trunk/extensions/TitleBlacklist/TitleBlacklist.list.php 2011-03-23
16:30:49 UTC (rev 84602)
@@ -183,7 +183,7 @@
}
$whitelist = $this->getWhitelist();
foreach( $whitelist as $item ) {
- if( !$item->matches( $title, $action ) ) {
+ if( $item->matches( $title, $action ) ) {
return true;
}
}
@@ -305,7 +305,7 @@
* @param $title Title to check
* @param $action %Action to check
* @return TRUE if the the regex matches the title, and is not
overridden
- * else if it doesn't match (or was overridden)
+ * else false if it doesn't match (or was overridden)
*/
public function matches( $title, $action ) {
wfSuppressWarnings();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs