Skip to content

Commit

Permalink
Add relative path to directory avoid file not found fatal error.
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshmap committed Apr 29, 2019
1 parent e0e1a9f commit 1c29095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context/MultilingualContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function initializeMultilanguage() {

//This function parses the languages_iso_codes.json file to an array.
public function parseLanguageCodes() {
$languages_iso_codes_string = file_get_contents("vendor/kolev/multilingual-extension/src/Resources/languages_iso_codes.json");
$languages_iso_codes_string = file_get_contents(__DIR__ . "/../Resources/languages_iso_codes.json");
$this->languages_iso_codes = json_decode($languages_iso_codes_string, true);
}

Expand Down

0 comments on commit 1c29095

Please sign in to comment.