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/importExport/index.php

    r3731 r3874  
    2727} 
    2828 
    29 $modules = new ArrayObject(array('import' => array(), 'export' => array())); 
     29$modules = new ArrayObject(['import' => [], 'export' => []]); 
    3030 
    3131# --BEHAVIOR-- importExportModules 
     
    3333 
    3434$type = null; 
    35 if (!empty($_REQUEST['type']) && in_array($_REQUEST['type'], array('export', 'import'))) { 
     35if (!empty($_REQUEST['type']) && in_array($_REQUEST['type'], ['export', 'import'])) { 
    3636    $type = $_REQUEST['type']; 
    3737} 
     
    7171if ($type && $module !== null) { 
    7272    echo dcPage::breadcrumb( 
    73         array( 
     73        [ 
    7474            __('Plugins')                   => '', 
    7575            $title                          => $p_url, 
    7676            html::escapeHTML($module->name) => '' 
    77         )) . 
     77        ]) . 
    7878    dcPage::notices(); 
    7979 
     
    8686} else { 
    8787    echo dcPage::breadcrumb( 
    88         array( 
     88        [ 
    8989            __('Plugins') => '', 
    9090            $title        => '' 
    91         )) . 
     91        ]) . 
    9292    dcPage::notices(); 
    9393 
     
    9898    '<p class="info">' . sprintf( 
    9999        __('Export functions are in the page %s.'), 
    100         '<a href="' . $core->adminurl->get('admin.plugin.maintenance', array('tab' => 'backup')) . '#backup">' . __('Maintenance') . '</a>' 
     100        '<a href="' . $core->adminurl->get('admin.plugin.maintenance', ['tab' => 'backup']) . '#backup">' . __('Maintenance') . '</a>' 
    101101    ) . '</p>'; 
    102102} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map