mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +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();
|
$contents = $Folder->read();
|
||||||
$themeFolders = $contents[0];
|
$themeFolders = $contents[0];
|
||||||
|
|
||||||
$pluginPaths = App::path('plugins');
|
$plugins = App::objects('plugin');
|
||||||
foreach($pluginPaths as $path) {
|
foreach ($plugins as $plugin) {
|
||||||
$paths[] = $path . 'vendors' . DS . 'shells' . DS;
|
$paths[] = $this->_pluginPath($plugin) . 'vendors' . DS . 'shells' . DS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TEMPORARY TODO remove when all paths are DS terminated
|
// TEMPORARY TODO remove when all paths are DS terminated
|
||||||
foreach($paths as &$path) {
|
foreach ($paths as $i => $path) {
|
||||||
$path = rtrim($path, DS) . DS;
|
$paths[$i] = rtrim($path, DS) . DS;
|
||||||
}
|
}
|
||||||
|
|
||||||
$themes = array();
|
$themes = array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue