Dotclear


Ignore:
Timestamp:
09/14/18 12:16:17 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

short notation for array (array() → [])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/themeEditor/_admin.php

    r3731 r3874  
    1616} 
    1717 
    18 $core->addBehavior('adminCurrentThemeDetails', array('themeEditorBehaviors', 'theme_editor_details')); 
     18$core->addBehavior('adminCurrentThemeDetails', ['themeEditorBehaviors', 'theme_editor_details']); 
    1919 
    20 $core->addBehavior('adminBeforeUserOptionsUpdate', array('themeEditorBehaviors', 'adminBeforeUserUpdate')); 
    21 $core->addBehavior('adminPreferencesForm', array('themeEditorBehaviors', 'adminPreferencesForm')); 
     20$core->addBehavior('adminBeforeUserOptionsUpdate', ['themeEditorBehaviors', 'adminBeforeUserUpdate']); 
     21$core->addBehavior('adminPreferencesForm', ['themeEditorBehaviors', 'adminPreferencesForm']); 
    2222 
    2323class themeEditorBehaviors 
     
    5151 
    5252        $themes_list  = dcPage::getCodeMirrorThemes(); 
    53         $themes_combo = array(__('Default') => ''); 
     53        $themes_combo = [__('Default') => '']; 
    5454        foreach ($themes_list as $theme) { 
    5555            $themes_combo[$theme] = $theme; 
     
    6969            '<p><label for="colorsyntax_theme" class="classic">' . __('Theme:') . '</label> ' . 
    7070            form::combo('colorsyntax_theme', $themes_combo, 
    71                 array( 
     71                [ 
    7272                    'default'    => $core->auth->user_prefs->interface->colorsyntax_theme, 
    73                     'extra_html' => 'onchange="selectTheme()"')) . 
     73                    'extra_html' => 'onchange="selectTheme()"']) . 
    7474                '</p>'; 
    7575        } else { 
     
    7878        echo '</div>'; 
    7979        echo '<div class="col">'; 
    80         echo dcPage::jsLoadCodeMirror('', false, array('javascript')); 
     80        echo dcPage::jsLoadCodeMirror('', false, ['javascript']); 
    8181        foreach ($themes_list as $theme) { 
    8282            echo dcPage::cssLoad('js/codemirror/theme/' . $theme . '.css'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map