Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
wdebusschere committed Apr 28, 2018
1 parent 153ca81 commit 02ba49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -46,9 +46,9 @@ protected function __trigger()
// If the ID isn't a number then it's a hash, so convert it to the entry ID
if( isset($_POST['id']) && !is_numeric($_POST['id']) )
{
require_once EXTENSIONS . '/hashid_field/lib/Hashids.php';
require_once EXTENSIONS . '/hashid_field/vendor/autoload.php';
$hash = new Hashids\Hashids( 'TheSaltForThisField' , 6 );
$hash = new \Hashids\Hashids( 'TheSaltForThisField' , 6 );
$decrypt_array = $hash->decrypt($_POST['id']);
$_POST['id'] = $decrypt_array[0];
};
Expand Down

0 comments on commit 02ba49b

Please sign in to comment.