Changeset 3874:ab8368569446 for inc/core/class.dc.themes.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.themes.php
r3731 r3874 38 38 (currently available keys : parent, priority, standalone_config, type, tplset) 39 39 */ 40 public function registerModule($name, $desc, $author, $version, $properties = array())40 public function registerModule($name, $desc, $author, $version, $properties = []) 41 41 { 42 42 # Fallback to legacy registerModule parameters 43 43 if (!is_array($properties)) { 44 44 $args = func_get_args(); 45 $properties = array();45 $properties = []; 46 46 if (isset($args[4])) { 47 47 $properties['parent'] = $args[4]; … … 53 53 # Themes specifics properties 54 54 $properties = array_merge( 55 array('parent' => null, 'tplset' => DC_DEFAULT_TPLSET),55 ['parent' => null, 'tplset' => DC_DEFAULT_TPLSET], 56 56 $properties, 57 array('permissions' => 'admin')// force themes perms57 ['permissions' => 'admin'] // force themes perms 58 58 ); 59 59
Note: See TracChangeset
for help on using the changeset viewer.