Skip to content

Commit

Permalink
Removing duplicate variable assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 10, 2009
1 parent b39b38a commit 0d37bec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cake/console/libs/tasks/project.php
Expand Up @@ -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;
Expand Down

0 comments on commit 0d37bec

Please sign in to comment.