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
  • inc/core/class.dc.themes.php

    r3731 r3874  
    3838    (currently available keys : parent, priority, standalone_config, type, tplset) 
    3939     */ 
    40     public function registerModule($name, $desc, $author, $version, $properties = array()) 
     40    public function registerModule($name, $desc, $author, $version, $properties = []) 
    4141    { 
    4242        # Fallback to legacy registerModule parameters 
    4343        if (!is_array($properties)) { 
    4444            $args       = func_get_args(); 
    45             $properties = array(); 
     45            $properties = []; 
    4646            if (isset($args[4])) { 
    4747                $properties['parent'] = $args[4]; 
     
    5353        # Themes specifics properties 
    5454        $properties = array_merge( 
    55             array('parent' => null, 'tplset' => DC_DEFAULT_TPLSET), 
     55            ['parent' => null, 'tplset' => DC_DEFAULT_TPLSET], 
    5656            $properties, 
    57             array('permissions' => 'admin') // force themes perms 
     57            ['permissions' => 'admin'] // force themes perms 
    5858        ); 
    5959 
Note: See TracChangeset for help on using the changeset viewer.

Sites map