Hoo man has submitted this change and it was merged.
Change subject: Fix a warning due to no blacklist source specified.
......................................................................
Fix a warning due to no blacklist source specified.
Blacklist source is needed for list evaluation, but is not
necessary when it the list is parsed.
Bug: 45991
Change-Id: I492a0733d346ab2282715d594918c10428217443
---
M TitleBlacklist.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Hoo man: Verified; Looks good to me, approved
jenkins-bot: Checked
diff --git a/TitleBlacklist.hooks.php b/TitleBlacklist.hooks.php
index b03c564..f0e8ce1 100644
--- a/TitleBlacklist.hooks.php
+++ b/TitleBlacklist.hooks.php
@@ -116,7 +116,7 @@
if ( $title->getNamespace() == NS_MEDIAWIKI &&
$title->getDBkey() == 'Titleblacklist' ) {
$blackList = TitleBlacklist::singleton();
- $bl = $blackList->parseBlacklist( $text );
+ $bl = $blackList->parseBlacklist( $text, 'page' );
$ok = $blackList->validate( $bl );
if ( count( $ok ) == 0 ) {
return true;
--
To view, visit https://gerrit.wikimedia.org/r/53185
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I492a0733d346ab2282715d594918c10428217443
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TitleBlacklist
Gerrit-Branch: master
Gerrit-Owner: Victor Vasiliev <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits