1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

[theme gallery] Finish implementing theme_update(), but it's untested

This commit is contained in:
Starbeamrainbowlabs 2019-09-29 16:18:03 +01:00
parent f543321304
commit 6696e90d9c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 5 additions and 3 deletions

View file

@ -82,10 +82,10 @@
{ {
"id": "feature-guiconfig", "id": "feature-guiconfig",
"name": "Settings GUI", "name": "Settings GUI",
"version": "0.1.5", "version": "0.1.6",
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.", "description": "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.",
"lastupdate": 1568296731, "lastupdate": 1569768162,
"optional": false, "optional": false,
"extra_data": [] "extra_data": []
}, },
@ -155,7 +155,7 @@
"version": "0.3", "version": "0.3",
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds a theme gallery page and optional automatic theme updates. Contacts a remote server, where IP addresses are stored in automatic server logs for security and attack mitigation purposes.", "description": "Adds a theme gallery page and optional automatic theme updates. Contacts a remote server, where IP addresses are stored in automatic server logs for security and attack mitigation purposes.",
"lastupdate": 1568296832, "lastupdate": 1569770257,
"optional": false, "optional": false,
"extra_data": [] "extra_data": []
}, },

View file

@ -148,7 +148,9 @@ function theme_update($force_update = false) : bool {
if($new_css == $settings->css) if($new_css == $settings->css)
return true; return true;
$settings->css = $new_css;
return save_settings();
} }
?> ?>