Permalink
Browse files

Removing duplicate variable assignment.

  • Loading branch information...
1 parent b39b38a commit 0d37beca754d0e31baaed775e4d83310147d8bc1 @markstory markstory committed Nov 10, 2009
Showing with 0 additions and 1 deletion.
  1. +0 −1 cake/console/libs/tasks/project.php
@@ -236,7 +236,6 @@ function corePath($path) {
$File =& new File($path . 'webroot' . DS . 'test.php');
$contents = $File->read();
if (preg_match('/([\\t\\x20]*define\\(\\\'CAKE_CORE_INCLUDE_PATH\\\',[\\t\\x20\'A-z0-9]*\\);)/', $contents, $match)) {
- $root = strpos(CAKE_CORE_INCLUDE_PATH, '/') === 0 ? " DS . '" : "'";
$result = str_replace($match[0], "\t\tdefine('CAKE_CORE_INCLUDE_PATH', " . $root . str_replace(DS, "' . DS . '", trim(CAKE_CORE_INCLUDE_PATH, DS)) . "');", $contents);
if (!$File->write($result)) {
return false;

0 comments on commit 0d37bec

Please sign in to comment.