mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-16 14:33:01 +00:00
Squash warnings about non-static methods in the page renderer
This commit is contained in:
parent
6fd3155ab9
commit
6e8e35748b
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue