diff --git a/src/Zxcvbn/Classes/Matchers/DictionaryMatch.php b/src/Zxcvbn/Classes/Matchers/DictionaryMatch.php index 50ef8c9..8634245 100644 --- a/src/Zxcvbn/Classes/Matchers/DictionaryMatch.php +++ b/src/Zxcvbn/Classes/Matchers/DictionaryMatch.php @@ -232,7 +232,7 @@ { if (empty(self::$rankedDictionaries)) { - $json = file_get_contents(dirname(__FILE__) . '/frequency_lists.json'); + $json = file_get_contents(Utilities::getDataFilePath('frequency_lists.json')); $data = json_decode($json, true); $rankedLists = [];