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