diff options
| author | 2022-05-23 14:03:19 +0200 | |
|---|---|---|
| committer | 2022-05-23 14:03:19 +0200 | |
| commit | f89819bd64bb5ada706f9b85abd6f7b600a95786 (patch) | |
| tree | 9bc1649eb12d54f0cf9a6e6385772e91be6481f7 /app/install.php | |
| parent | 8668ca7230e9198981e33f9882a6030c1733e7f3 (diff) | |
Custom logo HTML (#4369)
* Custom logo HTML
Add option for custom HTML logo/title in the main Web UI view.
Can potentially be different per user.
#fix https://github.com/FreshRSS/FreshRSS/pull/3830/files#r850472247
* logo_html in main config
With new `./data/config.custom.php` to provide custom values before install
* Docker documentation
* whitespace
* Auto relax CSP to allow images for HTML logo
* Documentation
Diffstat (limited to 'app/install.php')
| -rw-r--r-- | app/install.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/install.php b/app/install.php index 9186404c1..b0363efbc 100644 --- a/app/install.php +++ b/app/install.php @@ -145,6 +145,14 @@ function saveStep2() { $config_array['auth_type'] = Minz_Session::param('auth_type'); } + $customConfigPath = DATA_PATH . '/config.custom.php'; + if (file_exists($customConfigPath)) { + $customConfig = include($customConfigPath); + if (is_array($customConfig)) { + $config_array = array_merge($customConfig, $config_array); + } + } + @unlink(DATA_PATH . '/config.php'); //To avoid access-rights problems file_put_contents(DATA_PATH . '/config.php', "<?php\n return " . var_export($config_array, true) . ";\n"); |
