mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing undefined variable use.
Making the plugin path match the old plugins directory.
This commit is contained in:
parent
95a5b99b0e
commit
85752e21c1
2 changed files with 3 additions and 2 deletions
|
@ -76,7 +76,7 @@ class PluginTask extends Shell {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->bake($plugin)) {
|
if (!$this->bake($plugin)) {
|
||||||
$this->error(__d('cake_console', "An error occured trying to bake: %s in %s", $plugin, $this->path . Inflector::camelize($pluginPath)));
|
$this->error(__d('cake_console', "An error occured trying to bake: %s in %s", $plugin, $this->path . Inflector::camelize($plugin)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,6 +90,7 @@ class PluginTask extends Shell {
|
||||||
public function bake($plugin) {
|
public function bake($plugin) {
|
||||||
$pluginPath = Inflector::camelize($plugin);
|
$pluginPath = Inflector::camelize($plugin);
|
||||||
$pathOptions = App::path('plugins');
|
$pathOptions = App::path('plugins');
|
||||||
|
var_dump($pathOptions);
|
||||||
if (count($pathOptions) > 1) {
|
if (count($pathOptions) > 1) {
|
||||||
$this->findPath($pathOptions);
|
$this->findPath($pathOptions);
|
||||||
}
|
}
|
||||||
|
|
|
@ -314,7 +314,7 @@ class App {
|
||||||
'vendors' => array('%s' . 'Vendor' . DS, VENDORS),
|
'vendors' => array('%s' . 'Vendor' . DS, VENDORS),
|
||||||
'plugins' => array(
|
'plugins' => array(
|
||||||
APP . 'Plugin' . DS,
|
APP . 'Plugin' . DS,
|
||||||
APP . 'plugin' . DS,
|
APP . 'plugins' . DS,
|
||||||
dirname(dirname(CAKE)) . DS . 'Plugin' . DS,
|
dirname(dirname(CAKE)) . DS . 'Plugin' . DS,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue