mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Squash warnings about non-static methods in the page renderer
This commit is contained in:
parent
2198755af8
commit
dcd3c00d83
2 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- Hide site logo from screen readers
|
||||
- Lists of pages that have a specific tag will now be sorted alphabetically (unicode characters should be handled correctly too)
|
||||
- Support Unicode characters when sorting. If it's a list of something, then it's now sorted correctly (e.g. includes pages, tags, etc).
|
||||
- Squashed a bunch of warnings about a non-static methid in the page renderer
|
||||
|
||||
### Changed
|
||||
- Made `build.sh` build script more robust, especially when generating the documentation.
|
||||
|
|
|
@ -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