plugins/admin/PluginManager.php
changeset 675 872f0048dd81
parent 582 a38876c0793c
child 685 17ebe24cdf85
--- a/plugins/admin/PluginManager.php	Tue Aug 05 11:12:01 2008 -0400
+++ b/plugins/admin/PluginManager.php	Tue Aug 05 11:13:05 2008 -0400
@@ -195,6 +195,15 @@
               break;
             case 'disable':
             case 'enable':
+              // We're not in demo mode. Right?
+              if ( defined('ENANO_DEMO_MODE') )
+              {
+                $return = array(
+                    'mode' => 'error',
+                    'error' => $lang->get('acppl_err_demo_mode')
+                  );
+                break;
+              }
               $flags_col = ( $request['mode'] == 'disable' ) ?
                             "plugin_flags | "  . PLUGIN_DISABLED :
                             "plugin_flags & ~" . PLUGIN_DISABLED;