| Conditions | 4 |
| Paths | 6 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 36 | public static function get($prefix = null) |
||
| 37 | { |
||
| 38 | $theme = ($prefix == 'admin') ? Configure::read('Theme.admin') : Configure::read('Theme.site'); |
||
| 39 | $path = self::_find($theme); |
||
| 40 | |||
| 41 | if ($path !== null) { |
||
| 42 | self::loadList([$theme]); |
||
| 43 | $config = self::getData($theme, 'meta'); |
||
| 44 | if ($config->get('type') == 'theme') { |
||
| 45 | return $theme; |
||
| 46 | } else { |
||
| 47 | self::unload($theme); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | return null; |
||
| 52 | } |
||
| 53 | |||
| 75 |