From: Andrew Dolgov Date: Tue, 25 Dec 2012 06:08:49 +0000 (+0400) Subject: hide example plugins from the admin page X-Git-Tag: 1.7.0~127 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=23be0bd3fb661bc77e263baf50ea5906b363c6b1;p=tt-rss.git hide example plugins from the admin page --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index ce17af27..b8c8b909 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -675,7 +675,7 @@ class Pref_Prefs extends Handler_Protected { foreach ($tmppluginhost->get_plugins() as $name => $plugin) { $about = $plugin->about(); - if ($about[3]) { + if ($about[3] && strpos($name, "example") === FALSE) { if (in_array($name, $system_enabled)) { $checked = "checked='1'"; } else { @@ -711,7 +711,7 @@ class Pref_Prefs extends Handler_Protected { foreach ($tmppluginhost->get_plugins() as $name => $plugin) { $about = $plugin->about(); - if (!$about[3]) { + if (!$about[3] && strpos($name, "example") === FALSE) { if (in_array($name, $system_enabled)) { $checked = "checked='1'";