Skip to content

Commit

Permalink
Adds directory to require_once calls.
Browse files Browse the repository at this point in the history
Without the directory if the file autoload.php exists in a location on the
load path prior it will be loaded instead causing errors.
  • Loading branch information
stesi561 committed Sep 22, 2022
1 parent 345ce4c commit faa03b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload-fast.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php

require_once 'autoload.php';
require_once DIRNAME(__FILE__) . '/autoload.php';
ParagonIE_Sodium_Compat::$fastMult = true;
2 changes: 1 addition & 1 deletion autoload-pedantic.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once 'autoload.php';
require_once dirname(__FILE__) . '/autoload.php';
define('DO_PEDANTIC_TEST', true);

ParagonIE_Sodium_Compat::$fastMult = true;

0 comments on commit faa03b4

Please sign in to comment.