Skip to content

Commit

Permalink
Merge branch 'hotfix/bug-fix-lang-path'
Browse files Browse the repository at this point in the history
  • Loading branch information
themodernpk committed Feb 19, 2020
2 parents 2e1873a + 4fbc5b7 commit 9083f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["laravel", "cms"],
"homepage": "https://www.webreinvent.com",
"license": "MIT",
"version": "0.3.7",
"version": "0.3.8",
"authors": [
{
"name": "WebReinvent",
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/LanguageString.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public static function generateLangFiles()

$html = "<?php "."\n".$html;

$folder_path = 'resources\lang\/'.$language->locale_code_iso_639;
$folder_path = 'resources/lang/'.$language->locale_code_iso_639;
$folder_path_relative = base_path($folder_path);

if(!File::exists($folder_path_relative)) {
Expand All @@ -318,7 +318,7 @@ public static function generateLangFiles()

$file_name = 'vaahcms-'.$category->slug.'.php';

$file_path = base_path($folder_path.'\/'.$file_name);
$file_path = base_path($folder_path.'/'.$file_name);

File::put($file_path, $html);
}
Expand Down

0 comments on commit 9083f22

Please sign in to comment.