Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dp committed Mar 24, 2015
1 parent 7b150b4 commit 1a8b622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Source/Ice/Core/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ public static function load($class, $isRequired = true)
return true;
}

$fileName = self::$_repository->get($class);
if ($fileName) {
if ($fileName = self::$_repository->get($class)) {
require_once $fileName;
return true;
}
Expand Down
8 changes: 1 addition & 7 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
define('ICE_BOOTSTRAP', true);

if (!defined('VENDOR_DIR')) {
$vendorDir = realpath(dirname(__DIR__) . '/_vendor');

if (!$vendorDir) {
die('Vendor dir not found. Please, run \'php composer.phar update --prefer-source\'' . "\n");
}

define('VENDOR_DIR', $vendorDir . '/');
die("VENDOR_DIR not defined");
}

if (!defined('MODULE_DIR')) {
Expand Down

0 comments on commit 1a8b622

Please sign in to comment.