aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-07-08 23:10:00 +0200
committerArthurHoaro <arthur@hoa.ro>2019-07-08 23:20:56 +0200
commita5a0c0399bcfea518330c4bad186da77f89ace6e (patch)
tree3b8d80e19d3337bf5243eff63e10ab3bed4b5c67 /index.php
parentc03c90a13e1356ca9cf40cc664547c49305cb24b (diff)
downloadShaarli-a5a0c0399bcfea518330c4bad186da77f89ace6e.tar.gz
Shaarli-a5a0c0399bcfea518330c4bad186da77f89ace6e.tar.zst
Shaarli-a5a0c0399bcfea518330c4bad186da77f89ace6e.zip
WIP - Plugin to override default template colors
* Adds a new core plugin to override default template colors * Adds a new hook when plugin settings are saved (`save_plugin_parameters`) * Use CSS native variables for main colors instead of SASS variables * Disable SASS sort order rules due to a bug in the plugin Fixes #1312
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 957d8d9a..f0f71dbb 100644
--- a/index.php
+++ b/index.php
@@ -1567,6 +1567,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
1567 if ($targetPage == Router::$PAGE_SAVE_PLUGINSADMIN) { 1567 if ($targetPage == Router::$PAGE_SAVE_PLUGINSADMIN) {
1568 try { 1568 try {
1569 if (isset($_POST['parameters_form'])) { 1569 if (isset($_POST['parameters_form'])) {
1570 $pluginManager->executeHooks('save_plugin_parameters', $_POST);
1570 unset($_POST['parameters_form']); 1571 unset($_POST['parameters_form']);
1571 foreach ($_POST as $param => $value) { 1572 foreach ($_POST as $param => $value) {
1572 $conf->set('plugins.'. $param, escape($value)); 1573 $conf->set('plugins.'. $param, escape($value));