Skip to content

Commit

Permalink
Merge pull request friends-of-presta#261 from PrestaEdit/patch-1
Browse files Browse the repository at this point in the history
Add test on autoload.php file exist
  • Loading branch information
nenes25 authored Nov 15, 2023
2 parents dc1c6aa + 260766f commit 5da0635
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fop_console.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
*
*/

require_once 'vendor/autoload.php';
$autoloadPath = __DIR__ . '/vendor/autoload.php';
if (file_exists($autoloadPath)) {
require_once $autoloadPath;
}

class Fop_Console extends Module
{
Expand Down

0 comments on commit 5da0635

Please sign in to comment.