aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-03 11:43:54 +0100
committerGitHub <noreply@github.com>2021-01-03 11:43:54 +0100
commited4ee8f0297941ac83300389b7de6a293312d20e (patch)
treef074119530bb59ef155938ea367f719f1e4b70f1 /plugins
parent20ba77a2dc59d3a8d0cb1666267724bad864f62d (diff)
parent035a002edc7376a961e5621dc1039b082637fbc6 (diff)
downloadShaarli-ed4ee8f0297941ac83300389b7de6a293312d20e.tar.gz
Shaarli-ed4ee8f0297941ac83300389b7de6a293312d20e.tar.zst
Shaarli-ed4ee8f0297941ac83300389b7de6a293312d20e.zip
Merge pull request #1671 from ArthurHoaro/fix/plugin-colors-update
Fix default_colors plugin: update CSS file on color change
Diffstat (limited to 'plugins')
-rw-r--r--plugins/default_colors/default_colors.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/default_colors/default_colors.php b/plugins/default_colors/default_colors.php
index 574a0bd4..d3e1fa76 100644
--- a/plugins/default_colors/default_colors.php
+++ b/plugins/default_colors/default_colors.php
@@ -47,6 +47,20 @@ function default_colors_init($conf)
47} 47}
48 48
49/** 49/**
50 * When plugin parameters are saved, we regenerate the custom CSS file with provided settings.
51 *
52 * @param array $data $_POST array
53 *
54 * @return array Updated $_POST array
55 */
56function hook_default_colors_save_plugin_parameters($data)
57{
58 default_colors_generate_css_file($data);
59
60 return $data;
61}
62
63/**
50 * When linklist is displayed, include default_colors CSS file. 64 * When linklist is displayed, include default_colors CSS file.
51 * 65 *
52 * @param array $data - header data. 66 * @param array $data - header data.