]> git.wh0rd.org Git - tt-rss.git/commitdiff
hide example plugins from the admin page
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Dec 2012 06:08:49 +0000 (10:08 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Dec 2012 06:08:49 +0000 (10:08 +0400)
classes/pref/prefs.php

index ce17af27857d733bb7d99e365290ed4d9ac91796..b8c8b9097aef10c85f2e9e04116639654e295617 100644 (file)
@@ -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'";