[MediaWiki-commits] [Gerrit] mediawiki...WikiCategoryTagCloud[master]: Version 1.3.1: ArticleSave hook was deprecated in MW 1.21, u...
Jack Phoenix has uploaded a new change for review. https://gerrit.wikimedia.org/r/325264 Change subject: Version 1.3.1: ArticleSave hook was deprecated in MW 1.21, use PageContentSave instead .. Version 1.3.1: ArticleSave hook was deprecated in MW 1.21, use PageContentSave instead Change-Id: I7d512aa64a0d6fd4eaa16926179b2d9f153e6dd5 --- M WikiCategoryTagCloud.class.php M WikiCategoryTagCloud.php M extension.json 3 files changed, 6 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiCategoryTagCloud refs/changes/64/325264/1 diff --git a/WikiCategoryTagCloud.class.php b/WikiCategoryTagCloud.class.php index 7a6f3c1..81658e9 100644 --- a/WikiCategoryTagCloud.class.php +++ b/WikiCategoryTagCloud.class.php @@ -36,8 +36,8 @@ * When an admin edits MediaWiki:Tagcloudpages, purge the cache for each page * listed on that message. */ - public static function invalidateCache( &$article, &$user, &$text, &$summary, $minor, $watchThis, $sectionAnchor, &$flags, &$status ) { - $at = $article->getTitle(); + public static function invalidateCache( &$wikiPage, &$user, &$content, &$summary, $isMinor, $isWatch, $section, &$flags, &$status ) { + $at = $wikiPage->getTitle(); if ( $at->getText() == 'Tagcloudpages' && $at->getNamespace() == NS_MEDIAWIKI ) { $message = wfMessage( 'tagcloudpages' )->inContentLanguage(); diff --git a/WikiCategoryTagCloud.php b/WikiCategoryTagCloud.php index 8863ab2..971b0cd 100644 --- a/WikiCategoryTagCloud.php +++ b/WikiCategoryTagCloud.php @@ -26,7 +26,7 @@ $wgExtensionCredits['parserhook'][] = array( 'name' => 'Wiki Category Tag Cloud', - 'version' => '1.3', + 'version' => '1.3.1', 'author' => array( '[http://danf.ca/mw/ Daniel Friesen]', 'Jack Phoenix' ), 'descriptionmsg' => 'wikicategorytagcloud-desc', 'url' => 'https://www.mediawiki.org/wiki/Extension:WikiCategoryTagCloud', @@ -49,4 +49,4 @@ $wgHooks['ParserFirstCallInit'][] = 'WikiCategoryTagCloud::register'; // Hooked function -$wgHooks['ArticleSave'][] = 'WikiCategoryTagCloud::invalidateCache'; \ No newline at end of file +$wgHooks['PageContentSave'][] = 'WikiCategoryTagCloud::invalidateCache'; \ No newline at end of file diff --git a/extension.json b/extension.json index d68eff2..0134de8 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "Wiki Category Tag Cloud", - "version": "1.3", + "version": "1.3.1", "author": [ "[http://danf.ca/mw/ Daniel Friesen]", "Jack Phoenix" @@ -28,7 +28,7 @@ } }, "Hooks": { - "ArticleSave": [ + "PageContentSave": [ "WikiCategoryTagCloud::invalidateCache" ], "ParserFirstCallInit": [ -- To view, visit https://gerrit.wikimedia.org/r/325264 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7d512aa64a0d6fd4eaa16926179b2d9f153e6dd5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikiCategoryTagCloud Gerrit-Branch: master Gerrit-Owner: Jack Phoenix ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...WikiCategoryTagCloud[master]: Version 1.3.1: ArticleSave hook was deprecated in MW 1.21, u...
jenkins-bot has submitted this change and it was merged. Change subject: Version 1.3.1: ArticleSave hook was deprecated in MW 1.21, use PageContentSave instead .. Version 1.3.1: ArticleSave hook was deprecated in MW 1.21, use PageContentSave instead Change-Id: I7d512aa64a0d6fd4eaa16926179b2d9f153e6dd5 --- M WikiCategoryTagCloud.class.php M WikiCategoryTagCloud.php M extension.json 3 files changed, 6 insertions(+), 6 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/WikiCategoryTagCloud.class.php b/WikiCategoryTagCloud.class.php index 7a6f3c1..81658e9 100644 --- a/WikiCategoryTagCloud.class.php +++ b/WikiCategoryTagCloud.class.php @@ -36,8 +36,8 @@ * When an admin edits MediaWiki:Tagcloudpages, purge the cache for each page * listed on that message. */ - public static function invalidateCache( &$article, &$user, &$text, &$summary, $minor, $watchThis, $sectionAnchor, &$flags, &$status ) { - $at = $article->getTitle(); + public static function invalidateCache( &$wikiPage, &$user, &$content, &$summary, $isMinor, $isWatch, $section, &$flags, &$status ) { + $at = $wikiPage->getTitle(); if ( $at->getText() == 'Tagcloudpages' && $at->getNamespace() == NS_MEDIAWIKI ) { $message = wfMessage( 'tagcloudpages' )->inContentLanguage(); diff --git a/WikiCategoryTagCloud.php b/WikiCategoryTagCloud.php index 8863ab2..971b0cd 100644 --- a/WikiCategoryTagCloud.php +++ b/WikiCategoryTagCloud.php @@ -26,7 +26,7 @@ $wgExtensionCredits['parserhook'][] = array( 'name' => 'Wiki Category Tag Cloud', - 'version' => '1.3', + 'version' => '1.3.1', 'author' => array( '[http://danf.ca/mw/ Daniel Friesen]', 'Jack Phoenix' ), 'descriptionmsg' => 'wikicategorytagcloud-desc', 'url' => 'https://www.mediawiki.org/wiki/Extension:WikiCategoryTagCloud', @@ -49,4 +49,4 @@ $wgHooks['ParserFirstCallInit'][] = 'WikiCategoryTagCloud::register'; // Hooked function -$wgHooks['ArticleSave'][] = 'WikiCategoryTagCloud::invalidateCache'; \ No newline at end of file +$wgHooks['PageContentSave'][] = 'WikiCategoryTagCloud::invalidateCache'; \ No newline at end of file diff --git a/extension.json b/extension.json index d68eff2..0134de8 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "Wiki Category Tag Cloud", - "version": "1.3", + "version": "1.3.1", "author": [ "[http://danf.ca/mw/ Daniel Friesen]", "Jack Phoenix" @@ -28,7 +28,7 @@ } }, "Hooks": { - "ArticleSave": [ + "PageContentSave": [ "WikiCategoryTagCloud::invalidateCache" ], "ParserFirstCallInit": [ -- To view, visit https://gerrit.wikimedia.org/r/325264 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I7d512aa64a0d6fd4eaa16926179b2d9f153e6dd5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikiCategoryTagCloud Gerrit-Branch: master Gerrit-Owner: Jack Phoenix Gerrit-Reviewer: Legoktm Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits