Skip to content

Commit

Permalink
fix missing file Unable to resolve the request ".../js/i18n/elfinder.…
Browse files Browse the repository at this point in the history
…en.js".
  • Loading branch information
MihailDev committed Nov 22, 2014
1 parent 5cf47ee commit d3d826b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function init()
public static function addLangFile($lang, $view){
$lang = ElFinder::getSupportedLanguage($lang);

if ($lang !== false){
if ($lang !== false && $lang !== 'en'){
list(,$path) = \Yii::$app->assetManager->publish(__DIR__."/assets");
$view->registerJsFile($path.'/js/i18n/elfinder.' . $lang . '.js', ['depends' => [Assets::className()]]);
}
Expand Down

0 comments on commit d3d826b

Please sign in to comment.