mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:55:55 +00:00
hide example plugins from the admin page
This commit is contained in:
@@ -675,7 +675,7 @@ class Pref_Prefs extends Handler_Protected {
|
|||||||
foreach ($tmppluginhost->get_plugins() as $name => $plugin) {
|
foreach ($tmppluginhost->get_plugins() as $name => $plugin) {
|
||||||
$about = $plugin->about();
|
$about = $plugin->about();
|
||||||
|
|
||||||
if ($about[3]) {
|
if ($about[3] && strpos($name, "example") === FALSE) {
|
||||||
if (in_array($name, $system_enabled)) {
|
if (in_array($name, $system_enabled)) {
|
||||||
$checked = "checked='1'";
|
$checked = "checked='1'";
|
||||||
} else {
|
} else {
|
||||||
@@ -711,7 +711,7 @@ class Pref_Prefs extends Handler_Protected {
|
|||||||
foreach ($tmppluginhost->get_plugins() as $name => $plugin) {
|
foreach ($tmppluginhost->get_plugins() as $name => $plugin) {
|
||||||
$about = $plugin->about();
|
$about = $plugin->about();
|
||||||
|
|
||||||
if (!$about[3]) {
|
if (!$about[3] && strpos($name, "example") === FALSE) {
|
||||||
|
|
||||||
if (in_array($name, $system_enabled)) {
|
if (in_array($name, $system_enabled)) {
|
||||||
$checked = "checked='1'";
|
$checked = "checked='1'";
|
||||||
|
|||||||
Reference in New Issue
Block a user