Permalink
Browse files

Add absolute path to cake/vendors.

When the app + cake are on different paths, `VENDORS` is incorrect, and
the built-in repo/vendors directory is not reachable by the default
paths.

Fixes #2545
  • Loading branch information...
1 parent 4bb4040 commit f799d1c056ec818f43de6e7685e5245b4362131f @markstory markstory committed Feb 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Core/App.php
View
4 lib/Cake/Core/App.php
@@ -861,7 +861,9 @@ protected static function _packageFormat() {
'%s' . 'locale' . DS
),
'Vendor' => array(
- '%s' . 'Vendor' . DS, VENDORS
+ '%s' . 'Vendor' . DS,
+ dirname(dirname(CAKE)) . DS . 'vendors' . DS,
+ VENDORS
),
'Plugin' => array(
APP . 'Plugin' . DS,

0 comments on commit f799d1c

Please sign in to comment.