diff --git a/ViewerJsAssets.php b/ViewerJsAssets.php index ce47d63..7bf3699 100644 --- a/ViewerJsAssets.php +++ b/ViewerJsAssets.php @@ -20,7 +20,7 @@ class ViewerJsAssets extends AssetBundle /** * @var string the directory that contains the source asset files for this asset bundle. */ - public $sourcePath = '@vendor/bower/viewerjs/ViewerJs'; + public $sourcePath = '@vendor/bower/viewerjs/ViewerJS'; /** * @var array list of JavaScript files that this bundle contains. */ diff --git a/ViewerJsDocumentViewer.php b/ViewerJsDocumentViewer.php index 74b39e8..d14f707 100644 --- a/ViewerJsDocumentViewer.php +++ b/ViewerJsDocumentViewer.php @@ -50,7 +50,7 @@ protected function _getIframeUrl() public function init() { ViewerJsAssets::register($this->view); - $this->_urlViewer = \Yii::$app->assetManager->getPublishedUrl('@vendor/bower/viewerjs/ViewerJs'); + $this->_urlViewer = \Yii::$app->assetManager->getPublishedUrl('@vendor/bower/viewerjs/ViewerJS'); parent::init(); }