plugins/admin/PluginManager.php
changeset 675 872f0048dd81
parent 582 a38876c0793c
child 685 17ebe24cdf85
equal deleted inserted replaced
674:f514dc675f32 675:872f0048dd81
   193               
   193               
   194               $return = $plugins->uninstall_plugin($request['plugin'], $plugin_list);
   194               $return = $plugins->uninstall_plugin($request['plugin'], $plugin_list);
   195               break;
   195               break;
   196             case 'disable':
   196             case 'disable':
   197             case 'enable':
   197             case 'enable':
       
   198               // We're not in demo mode. Right?
       
   199               if ( defined('ENANO_DEMO_MODE') )
       
   200               {
       
   201                 $return = array(
       
   202                     'mode' => 'error',
       
   203                     'error' => $lang->get('acppl_err_demo_mode')
       
   204                   );
       
   205                 break;
       
   206               }
   198               $flags_col = ( $request['mode'] == 'disable' ) ?
   207               $flags_col = ( $request['mode'] == 'disable' ) ?
   199                             "plugin_flags | "  . PLUGIN_DISABLED :
   208                             "plugin_flags | "  . PLUGIN_DISABLED :
   200                             "plugin_flags & ~" . PLUGIN_DISABLED;
   209                             "plugin_flags & ~" . PLUGIN_DISABLED;
   201               // did they specify a plugin to operate on?
   210               // did they specify a plugin to operate on?
   202               if ( !isset($request['plugin']) )
   211               if ( !isset($request['plugin']) )