Dotclear


Ignore:
Timestamp:
03/08/18 17:58:39 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Code formatting (PSR-2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/index.php

    r2855 r3730  
    1111# -- END LICENSE BLOCK ----------------------------------------- 
    1212 
    13 if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     13if (!defined('DC_CONTEXT_ADMIN')) {return;} 
    1414 
    1515$is_admin = $core->auth->check('admin,contentadmin', $core->blog->id) || $core->auth->isSuperAdmin(); 
     
    2020if (!empty($_POST['saveconfig'])) { 
    2121    try { 
    22         $dclegacyeditor_active = (empty($_POST['dclegacyeditor_active']))?false:true; 
     22        $dclegacyeditor_active = (empty($_POST['dclegacyeditor_active'])) ? false : true; 
    2323        $core->blog->settings->dclegacyeditor->put('active', $dclegacyeditor_active, 'boolean'); 
    2424 
    2525        dcPage::addSuccessNotice(__('The configuration has been updated.')); 
    2626        http::redirect($p_url); 
    27     } catch(Exception $e) { 
    28           $core->error->add($e->getMessage()); 
     27    } catch (Exception $e) { 
     28        $core->error->add($e->getMessage()); 
    2929    } 
    3030} 
    3131 
    32 include dirname(__FILE__).'/tpl/index.tpl'; 
    33  
     32include dirname(__FILE__) . '/tpl/index.tpl'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map