mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing template path detection for plugins.
This commit is contained in:
parent
84e0e10d56
commit
8ae8a086dd
1 changed files with 5 additions and 5 deletions
|
@ -60,14 +60,14 @@ class TemplateTask extends Shell {
|
|||
$contents = $Folder->read();
|
||||
$themeFolders = $contents[0];
|
||||
|
||||
$pluginPaths = App::path('plugins');
|
||||
foreach($pluginPaths as $path) {
|
||||
$paths[] = $path . 'vendors' . DS . 'shells' . DS;
|
||||
$plugins = App::objects('plugin');
|
||||
foreach ($plugins as $plugin) {
|
||||
$paths[] = $this->_pluginPath($plugin) . 'vendors' . DS . 'shells' . DS;
|
||||
}
|
||||
|
||||
// TEMPORARY TODO remove when all paths are DS terminated
|
||||
foreach($paths as &$path) {
|
||||
$path = rtrim($path, DS) . DS;
|
||||
foreach ($paths as $i => $path) {
|
||||
$paths[$i] = rtrim($path, DS) . DS;
|
||||
}
|
||||
|
||||
$themes = array();
|
||||
|
|
Loading…
Add table
Reference in a new issue