Skip to content
Permalink
Browse files

Using more constants in paths.

  • Loading branch information...
markstory committed Jun 11, 2009
1 parent 62199db commit 22c575595dac4874496bfb8e4c933bd37a65a735
Showing with 2 additions and 4 deletions.
  1. +2 −4 cake/console/libs/tasks/plugin.php
@@ -63,13 +63,11 @@ function initialize() {
function execute() {
if (empty($this->params['skel'])) {
$this->params['skel'] = '';
if (is_dir(CAKE_CORE_INCLUDE_PATH.DS.'cake'.DS.'console'.DS.'libs'.DS.'templates'.DS.'skel') === true) {
$this->params['skel'] = CAKE_CORE_INCLUDE_PATH.DS.'cake'.DS.'console'.DS.'libs'.DS.'templates'.DS.'skel';
if (is_dir(CAKE_CORE_INCLUDE_PATH . DS . CONSOLE_LIBS . 'templates' . DS . 'skel') === true) {
$this->params['skel'] = CAKE_CORE_INCLUDE_PATH . DS . CONSOLE_LIBS . 'templates' . DS . 'skel';
}
}
$plugin = null;
if (isset($this->args[0])) {
$plugin = Inflector::camelize($this->args[0]);
$pluginPath = Inflector::underscore($plugin) . DS;

0 comments on commit 22c5755

Please sign in to comment.
You can’t perform that action at this time.