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/plugin.php

    r3731 r3874  
    1717 
    1818if ($popup) { 
    19     $open_f  = array('dcPage', 'openPopup'); 
    20     $close_f = array('dcPage', 'closePopup'); 
     19    $open_f  = ['dcPage', 'openPopup']; 
     20    $close_f = ['dcPage', 'closePopup']; 
    2121} else { 
    22     $open_f  = array('dcPage', 'open'); 
    23     $close_f = array('dcPage', 'close'); 
     22    $open_f  = ['dcPage', 'open']; 
     23    $close_f = ['dcPage', 'close']; 
    2424} 
    2525 
     
    8585    call_user_func($open_f, __('Plugin not found'), '', 
    8686        dcPage::breadcrumb( 
    87             array( 
     87            [ 
    8888                __('System')           => '', 
    8989                __('Plugin not found') => '' 
    90             )) 
     90            ]) 
    9191    ); 
    9292 
Note: See TracChangeset for help on using the changeset viewer.

Sites map