Skip to content

Commit

Permalink
Fix loading autoload.php in propel.php, when we use propel in externa…
Browse files Browse the repository at this point in the history
…l projects

Fix the fix

Fix the fix 2

Fix loading autoload in propel.php
  • Loading branch information
cristianoc72 committed May 25, 2012
1 parent 784b6e4 commit 65148db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/propel.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

if (!class_exists('\Symfony\Component\Console\Application')) {
if (file_exists($file = __DIR__.'/../autoload.php')) {
if (file_exists($file = __DIR__.'/../../../autoload.php') || file_exists($file = __DIR__.'/../autoload.php')) {
require_once $file;
} elseif (file_exists($file = __DIR__.'/../autoload.php.dist')) {
require_once $file;
Expand Down

0 comments on commit 65148db

Please sign in to comment.