Removing references to "addNotice" function in glmPluginSupport that were causing...
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 5 Oct 2017 21:05:56 +0000 (17:05 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 5 Oct 2017 21:05:56 +0000 (17:05 -0400)
activate.php
models/admin/management/serverStats.php

index 48ec76e..b2358bf 100644 (file)
@@ -58,7 +58,6 @@ class glmMembersServerStatsPluginActivate
 
         // Make sure the current user has this capability
         if (! current_user_can('activate_plugins')) {
-            $this->addNotice("Interesting, you don't have permission to activate plugins.");
             die();
         }
 
index b26ac58..e2e5973 100644 (file)
@@ -183,14 +183,6 @@ class GlmMembersAdmin_management_serverStats extends GlmDataServerStatsManagemen
         // Get current server stats settings to use for Server Settings form
         $serverStatsSettings = $this->editEntry(1);
 
-        if ($serverStatsSettings === false) {
-
-            if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
-                glmMembersAdmin::addNotice("<b>&nbsp;&nbsp;/models/admin/management/serverStats.php: Unable to load server stats management settings.", 'Alert');
-            }
-
-        }
-
         // Compile template data
         $templateData = array(
             'option' => $option,