From 6e8e35748b47d66aa90dbcfb00d1229170c18d3a Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 11 Sep 2019 22:11:13 +0100 Subject: [PATCH] Squash warnings about non-static methods in the page renderer --- Changelog.md | 5 +++++ core/40-page-renderer.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 855662b..6102108 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,11 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of things that have changed (second only to the commit history!) - though the information for any particular release can also be found in the description of it's page for every release made on GitHub too. +## v0.19.3-hotfix3 + +### Fixed + + ## v0.19.2-hotfix2 - Patched another crazy bug in the extra data system in the downloader diff --git a/core/40-page-renderer.php b/core/40-page-renderer.php index 420b6ad..63eb818 100644 --- a/core/40-page-renderer.php +++ b/core/40-page-renderer.php @@ -342,7 +342,7 @@ class page_renderer * @package core * @param string $scriptUrl The url of the javascript file to reference. */ - public function add_js_link(string $scriptUrl) { + public static function add_js_link(string $scriptUrl) { static::$jsLinks[] = $scriptUrl; } /** @@ -350,7 +350,7 @@ class page_renderer * @package core * @param string $script The snippet of javascript to add. */ - public function add_js_snippet(string $script) { + public static function add_js_snippet(string $script) { static::$jsSnippets[] = $script; } /**