From 0d37beca754d0e31baaed775e4d83310147d8bc1 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 10 Nov 2009 09:23:43 -0500 Subject: [PATCH] Removing duplicate variable assignment. --- cake/console/libs/tasks/project.php | 1 - 1 file changed, 1 deletion(-) diff --git a/cake/console/libs/tasks/project.php b/cake/console/libs/tasks/project.php index de2b91e68..6194fab31 100644 --- a/cake/console/libs/tasks/project.php +++ b/cake/console/libs/tasks/project.php @@ -236,7 +236,6 @@ class ProjectTask extends Shell { $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;