Permalink
Browse files

Fix composer looking for autoload in local vendor folder

  • Loading branch information...
1 parent 34ec946 commit 4dfc146f9e4bf1b4902441c964f098786c42a615 @MarcelloDuarte MarcelloDuarte committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 build/build.xml
  2. +1 −1 scripts/phpspec.php
View
2 build/build.xml
@@ -1,6 +1,6 @@
<project name="PHPSpec" default="pearify" basedir="..">
- <property name="version" value="1.4.0" />
+ <property name="version" value="1.4.1" />
<property name="stability" value="stable" />
<property name="source" value="src" />
<property name="build" value="build" />
View
2 scripts/phpspec.php
@@ -177,7 +177,7 @@
$ds = DIRECTORY_SEPARATOR;
$installation = '';
-if (is_dir($vendor = __DIR__ . "{$ds}..{$ds}vendor")) {
+if (is_dir($vendor = __DIR__ . "{$ds}..{$ds}vendor") && file_exists($vendor . "{$ds}autoload.php")) {
require($vendor . "{$ds}autoload.php");
$installation = COMPOSER_INSTALL;
} elseif (is_dir($vendor = __DIR__ . "{$ds}..{$ds}..{$ds}..{$ds}..{$ds}vendor")) {

0 comments on commit 4dfc146

Please sign in to comment.