mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-15 10:17:49 +00:00
(bug 12608) Unifying the spelling of getDBkey() in the extension code.
This commit is contained in:
parent
abcd149c48
commit
d942c258ba
|
@ -65,7 +65,7 @@ class TitleBlacklistHooks {
|
|||
public static function validateBlacklist( $editor, $text, $section, $error ) {
|
||||
global $wgTitleBlacklist;
|
||||
$title = $editor->mTitle;
|
||||
if( $title->getNamespace() != NS_MEDIAWIKI || $title->getDbKey() != 'Titleblacklist' )
|
||||
if( $title->getNamespace() != NS_MEDIAWIKI || $title->getDBkey() != 'Titleblacklist' )
|
||||
return true;
|
||||
|
||||
wfLoadExtensionMessages( 'TitleBlacklist' );
|
||||
|
@ -91,7 +91,7 @@ class TitleBlacklistHooks {
|
|||
public static function clearBlacklist( &$article, &$user,
|
||||
$text, $summary, $isminor, $iswatch, $section ) {
|
||||
$title = $article->getTitle();
|
||||
if( $title->getNamespace() == NS_MEDIAWIKI && $title->getDbKey() == 'Titleblacklist' ) {
|
||||
if( $title->getNamespace() == NS_MEDIAWIKI && $title->getDBkey() == 'Titleblacklist' ) {
|
||||
global $wgTitleBlacklist;
|
||||
$wgTitleBlacklist->invalidate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue