From d9b8b52eba58a392610f92786eb90c3dba5ba8ff Mon Sep 17 00:00:00 2001
From: dho <dho@3807eeeb-6ff5-0310-8944-8be069107fe0>
Date: Tue, 24 Oct 2006 14:45:55 +0000
Subject: [PATCH] Adding definition for WWW_ROOT constant (ticket #1533)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3738 3807eeeb-6ff5-0310-8944-8be069107fe0
---
 cake/scripts/bake2.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cake/scripts/bake2.php b/cake/scripts/bake2.php
index 1839adec0..d6ad23b0e 100644
--- a/cake/scripts/bake2.php
+++ b/cake/scripts/bake2.php
@@ -72,12 +72,15 @@
 		define('ROOT', $root);
 		define('APP_DIR', $appdir);
 		define('APP_PATH', ROOT.DS.APP_DIR.DS);
+		// TODO: how to handle situation with a non-standard webroot setup?
+		define('WWW_ROOT', APP_PATH.DS.'webroot'.DS); 
 	}
 	
 	function defineAppConstantsWithDefaultValues() {
 		define('ROOT', CORE_PATH);
 		define('APP_DIR', 'app');
 		define('APP_PATH', ROOT.DS.APP_DIR.DS);
+		define('WWW_ROOT', APP_PATH.DS.'webroot'.DS);
 	}
 	
 	function defineConstants() {