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
  • admin/langs.php

    r3731 r3874  
    158158    dcPage::jsLoad('js/_langs.js'), 
    159159    dcPage::breadcrumb( 
    160         array( 
     160        [ 
    161161            __('System')               => '', 
    162162            __('Languages management') => '' 
    163         )) 
     163        ]) 
    164164); 
    165165 
     
    183183 
    184184$locales_content = scandir(DC_L10N_ROOT); 
    185 $tmp             = array(); 
     185$tmp             = []; 
    186186foreach ($locales_content as $v) { 
    187187    $c = ($v == '.' || $v == '..' || $v == 'en' || !is_dir(DC_L10N_ROOT . '/' . $v) || !isset($iso_codes[$v])); 
     
    217217            '<div>' . 
    218218            $core->formNonce() . 
    219             form::hidden(array('locale_id'), html::escapeHTML($k)) . 
     219            form::hidden(['locale_id'], html::escapeHTML($k)) . 
    220220            '<input type="submit" class="delete" name="delete" value="' . __('Delete') . '" /> ' . 
    221221                '</div>' . 
     
    236236 
    237237if (!empty($dc_langs) && $is_writable) { 
    238     $dc_langs_combo = array(); 
     238    $dc_langs_combo = []; 
    239239    foreach ($dc_langs as $k => $v) { 
    240240        if ($v->link && isset($iso_codes[$v->title])) { 
     
    249249        'Proposed languages are based on your version: %s.'), '<strong>' . DC_VERSION . '</strong>') . '</p>' . 
    250250    '<p class="field"><label for="pkg_url" class="classic">' . __('Language:') . '</label> ' . 
    251     form::combo(array('pkg_url'), $dc_langs_combo) . '</p>' . 
     251    form::combo(['pkg_url'], $dc_langs_combo) . '</p>' . 
    252252    '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Your password:') . '</label> ' . 
    253     form::password(array('your_pwd', 'your_pwd1'), 20, 255, 
    254         array( 
     253    form::password(['your_pwd', 'your_pwd1'], 20, 255, 
     254        [ 
    255255            'extra_html'   => 'required placeholder="' . __('Password') . '"', 
    256             'autocomplete' => 'current-password') 
     256            'autocomplete' => 'current-password'] 
    257257    ) . '</p>' . 
    258258    '<p><input type="submit" value="' . __('Install language') . '" />' . 
     
    271271    '<input type="file" id="pkg_file" name="pkg_file" required /></p>' . 
    272272    '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Your password:') . '</label> ' . 
    273     form::password(array('your_pwd', 'your_pwd2'), 20, 255, 
    274         array( 
     273    form::password(['your_pwd', 'your_pwd2'], 20, 255, 
     274        [ 
    275275            'extra_html'   => 'required placeholder="' . __('Password') . '"', 
    276             'autocomplete' => 'current-password') 
     276            'autocomplete' => 'current-password'] 
    277277    ) . '</p>' . 
    278278    '<p><input type="submit" name="upload_pkg" value="' . __('Upload language') . '" />' . 
Note: See TracChangeset for help on using the changeset viewer.

Sites map