From 8d9dd7e708ddf5759a972d27f34e2408f2df970c Mon Sep 17 00:00:00 2001 From: Alexey Neff Date: Sat, 13 Jan 2018 17:29:38 +0200 Subject: [PATCH] fix viewerjs path --- ViewerJsAssets.php | 2 +- ViewerJsDocumentViewer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }