| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 68 | public static function find($theme) |
||
| 69 | { |
||
| 70 | $paths = App::path('Plugin'); |
||
| 71 | foreach ($paths as $path) { |
||
| 72 | $path = FS::clean($path . '/', DS); |
||
| 73 | $themeFolder = $path . $theme; |
||
| 74 | |||
| 75 | if (FS::isDir($themeFolder)) { |
||
| 76 | return $themeFolder; |
||
| 77 | } |
||
| 78 | } |
||
| 79 | |||
| 80 | return Configure::read('plugins.' . $theme); |
||
| 81 | } |
||
| 82 | } |
||
| 83 |