mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-12-18 16:41:24 +00:00
Replace ArticleSaveComplete hook usage
Bug: T147558 Change-Id: I30f8e4d3c98a421036374245522bc0784ceafec3
This commit is contained in:
parent
2429c84002
commit
496afa6548
|
@ -277,7 +277,7 @@ class TitleBlacklistHooks {
|
||||||
* @param Article $article
|
* @param Article $article
|
||||||
*/
|
*/
|
||||||
public static function clearBlacklist( &$article, &$user,
|
public static function clearBlacklist( &$article, &$user,
|
||||||
$text, $summary, $isminor, $iswatch, $section )
|
$content, $summary, $isminor, $iswatch, $section )
|
||||||
{
|
{
|
||||||
$title = $article->getTitle();
|
$title = $article->getTitle();
|
||||||
if ( $title->getNamespace() == NS_MEDIAWIKI && $title->getDBkey() == 'Titleblacklist' ) {
|
if ( $title->getNamespace() == NS_MEDIAWIKI && $title->getDBkey() == 'Titleblacklist' ) {
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
"EditFilter": [
|
"EditFilter": [
|
||||||
"TitleBlacklistHooks::validateBlacklist"
|
"TitleBlacklistHooks::validateBlacklist"
|
||||||
],
|
],
|
||||||
"ArticleSaveComplete": [
|
"PageContentSaveComplete": [
|
||||||
"TitleBlacklistHooks::clearBlacklist"
|
"TitleBlacklistHooks::clearBlacklist"
|
||||||
],
|
],
|
||||||
"ScribuntoExternalLibraries": [
|
"ScribuntoExternalLibraries": [
|
||||||
|
|
Loading…
Reference in a new issue