]> git.mxchange.org Git - friendica.git/commitdiff
Check if the vendor path is missing and complain about it
authorMichael <heluecht@pirati.ca>
Fri, 18 Jan 2019 19:10:05 +0000 (19:10 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 18 Jan 2019 19:10:05 +0000 (19:10 +0000)
index.php

index efcfe439246d5187c542b3a42f8263788bdd3f6d..16fc2e0d084482fb3ea0c66263516c0dde50a6ff 100644 (file)
--- a/index.php
+++ b/index.php
@@ -4,6 +4,10 @@
  * Friendica
  */
 
+if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
+       die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
+}
+
 require __DIR__ . '/vendor/autoload.php';
 
 // We assume that the index.php is called by a frontend process