mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Document new theme_update() function
This commit is contained in:
parent
e708220bc6
commit
e570427469
1 changed files with 5 additions and 0 deletions
|
@ -108,6 +108,11 @@ register_module([
|
|||
}
|
||||
]);
|
||||
|
||||
/**
|
||||
* Updates the currently selected theme by fetching it from a remote url.
|
||||
* @param bool $force_update Whether to force an update - even if we've already updated recently.
|
||||
* @return bool Whether the update was sucessful. It might fail because of network issues, or the theme update requires a newer version of Pepperminty Wiki than is currently installed.
|
||||
*/
|
||||
function theme_update($force_update = false) : bool {
|
||||
global $version, $settings;
|
||||
|
||||
|
|
Loading…
Reference in a new issue