Skip to content

Commit

Permalink
Use SiteNoticeAfter hook instead of Before
Browse files Browse the repository at this point in the history
Change-Id: Ie762e81cdeb3d698bb0aa67d9396b826535945e4
  • Loading branch information
jdlrobson committed May 28, 2022
1 parent b25ac91 commit c77db22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SkinJSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getUser() {
return parent::getUser();
}

public static function onSiteNoticeBefore( &$siteNotice, $skin ) {
public static function onSiteNoticeAfter( &$siteNotice, $skin ) {
$empty = strlen( $siteNotice ) === 0;
$config = $skin->getConfig();
if ( $config->get( 'SkinJSONValidate' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"SkinJSONValidate": true
},
"Hooks": {
"SiteNoticeBefore": "SkinJSON::onSiteNoticeBefore",
"SiteNoticeAfter": "SkinJSON::onSiteNoticeAfter",
"SidebarBeforeOutput": "SkinJSON::onSidebarBeforeOutput",
"OutputPageBeforeHTML": "SkinJSON::onOutputPageBeforeHTML",
"RequestContextCreateSkin": "SkinJSON::onRequestContextCreateSkin",
Expand Down

0 comments on commit c77db22

Please sign in to comment.