From 02ba49b2d62837a840016c9c6e9129e3cc5436a3 Mon Sep 17 00:00:00 2001 From: Wannes Debusschere Date: Sat, 28 Apr 2018 15:45:32 +0100 Subject: [PATCH] Update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e0aa1c9..2d8becd 100644 --- a/README.md +++ b/README.md @@ -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]; };