Hide base theme (#7234)

This commit is contained in:
Alexandre Alapetite
2025-01-21 23:31:40 +01:00
committed by GitHub
parent 3fda6f6bf5
commit 825ccf5556
5 changed files with 12 additions and 10 deletions

View File

@@ -15,6 +15,9 @@ indent_style = tab
[*.js]
indent_style = tab
[*.json]
indent_style = tab
[*.md]
indent_size = 4
indent_style = tab

View File

@@ -90,7 +90,7 @@ class FreshRSS_extension_Controller extends FreshRSS_ActionController {
continue 2;
}
}
if (!in_array($extension['type'], ['system', 'user'], true)) {
if (!in_array($extension['type'], ['system', 'user'], true) || trim($extension['name']) === '') {
continue;
}
/** @var array{name:string,author:string,description:string,version:string,entrypoint:string,type:'system'|'user',url:string,method:string,directory:string} $extension */

View File

@@ -21,7 +21,7 @@ class FreshRSS_Themes extends Minz_Model {
$list = [];
foreach ($themes_list as $theme_dir) {
$theme = self::get_infos($theme_dir);
if (is_array($theme)) {
if (is_array($theme) && trim($theme['name']) !== '') {
$list[$theme_dir] = $theme;
}
}

View File

@@ -8,5 +8,4 @@ A base theme for [FreshRSS](https://freshrss.org)
3. Choose your new theme in FreshRSS configuration
4. Enjoy your wonderful theme!
Dont hesitate to share your theme with us [on GitHub](https://github.com/FreshRSS/FreshRSS/issues) :)
Dont hesitate to [share your theme with us](https://github.com/FreshRSS/FreshRSS/discussions/categories/show-and-tell) 🙂

View File

@@ -1,8 +1,8 @@
{
"name": "",
"author": "Your name",
"description": "A wonderful base theme",
"version": 0.1,
"files": ["frss.css", "base.css"],
"theme-color": "#123456"
"name": "",
"author": "Your name",
"description": "A wonderful base theme",
"version": 0.1,
"files": ["frss.css", "base.css"],
"theme-color": "#123456"
}