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.plugins.php

    r3731 r3874  
    3939    @param    properties    <b>array</b>        extra properties (currently available keys : permissions, priority, standalone_config, type) 
    4040     */ 
    41     public function registerModule($name, $desc, $author, $version, $properties = array()) 
     41    public function registerModule($name, $desc, $author, $version, $properties = []) 
    4242    { 
    4343        # Fallback to legacy registerModule parameters 
    4444        if (!is_array($properties)) { 
    4545            $args       = func_get_args(); 
    46             $properties = array(); 
     46            $properties = []; 
    4747            if (isset($args[4])) { 
    4848                $properties['permissions'] = $args[4]; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map