forked from miraheze/MatomoAnalytics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T9814: ensure matomo script isn't added more than once (miraheze#91)
Since 1.38 it has been possible that the `SkinAfterBottomScripts` hook could be ran twice. Once is in `OutputPage::tailElement()`, once in `OutputPage::getBottomScripts()`. Since `OutputPage::tailElement()` also runs `OutputPage::getBottomScripts()`, if `OutputPage::tailElement()` is ran, the hook is ran twice and the script here gets added twice. This should prevent that.
- Loading branch information
1 parent
5fa48ec
commit 819eb41
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters