Skip to content

Commit eaebb76

Browse files
committed
Merge pull request #4 from borodulin/fix-lang-file
fix lang file
2 parents 6fcd2f5 + 5808a8c commit eaebb76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Select2Widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function registerAssets()
145145
}
146146
foreach ($langs as $lang) {
147147
$langFile = "/js/i18n/{$lang}.js";
148-
if (file_exists($bandle->sourcePath.$filename)) {
148+
if (file_exists($bandle->sourcePath.$langFile)) {
149149
$view->registerJsFile($bandle->baseUrl.$langFile, ['depends' => Select2Asset::className()]);
150150
break;
151151
}

0 commit comments

Comments
 (0)