Skip to content

Commit

Permalink
Merge pull request #646 from virtualtam/composer/check-autoload
Browse files Browse the repository at this point in the history
composer: display an error message if the autoload script is missing
  • Loading branch information
virtualtam authored Sep 6, 2016
2 parents e1fd94b + 5283175 commit d06c28e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@


// 3rd-party libraries
if (! file_exists(__DIR__ . '/vendor/autoload.php')) {
header('Content-Type: text/plain; charset=utf-8');
echo "Error: missing Composer configuration\n\n"
."If you installed Shaarli through Git or using the development branch,\n"
."please refer to the installation documentation to install PHP"
." dependencies using Composer:\n"
."- https://github.com/shaarli/Shaarli/wiki/Server-requirements\n"
."- https://github.com/shaarli/Shaarli/wiki/Download-and-Installation";
exit;
}
require_once 'inc/rain.tpl.class.php';
require_once __DIR__ . '/vendor/autoload.php';

Expand Down

0 comments on commit d06c28e

Please sign in to comment.