summaryrefslogtreecommitdiff
path: root/classes/pref
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-25 10:08:49 +0400
committerAndrew Dolgov <[email protected]>2012-12-25 10:08:49 +0400
commit23be0bd3fb661bc77e263baf50ea5906b363c6b1 (patch)
treee12e22feb9f11a49a6e725adac9141a9234c97ca /classes/pref
parent0ac22f29ca24068876233d3d75f55b1a7d9c7072 (diff)
hide example plugins from the admin page
Diffstat (limited to 'classes/pref')
-rw-r--r--classes/pref/prefs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index ce17af278..b8c8b9097 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'";