Changeset 2239:cd7100fa57db for inc/core/class.dc.themes.php
- Timestamp:
- 10/04/13 00:53:07 (12 years ago)
- Branch:
- default
- Children:
- 2240:2553775ae2fe, 2242:f31162da2395
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.themes.php
r1179 r2239 23 23 class dcThemes extends dcModules 24 24 { 25 protected static $type = 'theme'; 26 25 27 /** 26 28 This method registers a theme in modules list. You should use this to … … 58 60 'parent' => null, 59 61 'priority' => 1000, 60 'standalone_config' => false 62 'standalone_config' => false, 63 'type' => null 61 64 ), $properties 62 65 ); 66 67 if ($properties['type'] !== null && $properties['type'] != self::$type) { 68 $this->errors[] = sprintf( 69 __('Module "%s" has type "%s" that mismatch required module type "%s".'), 70 '<strong>'.html::escapeHTML($name).'</strong>', 71 '<em>'.html::escapeHTML($properties['type']).'</em>', 72 '<em>'.html::escapeHTML(self::$type).'</em>' 73 ); 74 return; 75 } 76 63 77 if ($this->id) { 64 78 $this->modules[$this->id] = array_merge(
Note: See TracChangeset
for help on using the changeset viewer.