chache to return (file_exists() && include );

main
Marcin Chyłek 12 years ago
parent 7d2a287863
commit 0e0b5ac222

@ -2,7 +2,7 @@
<?php <?php
function autoload($file) { function autoload($file) {
return (file_exists($file) && include $file) ? true : false; return (file_exists($file) && include $file);
} }
if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) { if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) {

@ -2,7 +2,7 @@
<?php <?php
function autoload($file) { function autoload($file) {
return (file_exists($file) && include $file) ? true : false; return (file_exists($file) && include $file);
} }
if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) { if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) {

Loading…
Cancel
Save