--- 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;