mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
[theme gallery] Finish implementing theme_update(), but it's untested
This commit is contained in:
parent
f543321304
commit
6696e90d9c
2 changed files with 5 additions and 3 deletions
|
@ -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": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue