Skip to content
This repository
Browse code

Applying patch from 'Utoxin' that removes hardcoded 'app' string from…

… Dispatcher. Fixes #1231
  • Loading branch information...
commit 16387f196191c5cb942f887f05456cb439944f41 1 parent 3639f52
Mark Story authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  cake/dispatcher.php
2  cake/dispatcher.php
@@ -339,7 +339,7 @@ function baseUrl() {
339 339
 			if ($webroot === 'webroot' && $webroot === basename($base)) {
340 340
 				$base = dirname($base);
341 341
 			}
342  
-			if ($dir === 'app' && $dir === basename($base)) {
  342
+			if ($dir === APP_DIR && $dir === basename($base)) {
343 343
 				$base = dirname($base);
344 344
 			}
345 345
 

0 notes on commit 16387f1

ADmad

Mark, shouldn't the string 'webroot' also be replaced with WEBROOT_DIR?

Mark Story

Yeah it probably should, now that you mention it.

Please sign in to comment.
Something went wrong with that request. Please try again.