From 3e69b623b21cf1bd653244204dae4394057704fc Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 24 Apr 2023 17:56:03 +0200 Subject: [PATCH] wait #5879 @0.5 --- app/Models/ELearningMedia.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/ELearningMedia.php b/app/Models/ELearningMedia.php index a455ad988..ba5cfc7a0 100644 --- a/app/Models/ELearningMedia.php +++ b/app/Models/ELearningMedia.php @@ -131,8 +131,8 @@ class ELearningMedia extends ToolboxModel $vdir->copyDirectory(resource_path('elearningmedia/dist/css'), 'css'); $vdir->copyDirectory(resource_path('elearningmedia/dist/js'), 'js'); if ($type === 'pdf') { - $vdir->copyDirectory(resource_path('pdfjs-legacy'), 'pdfjs'); - $css = file_get_contents(resource_path('pdfjs-legacy/web/viewer.css')); + $vdir->copyDirectory(resource_path('pdfjs/legacy'), 'pdfjs'); + $css = file_get_contents(resource_path('pdfjs/legacy/web/viewer.css')); $css .= 'body{--sidebar-width:400px;}'; $css .= '#openFile,#pageRotateCw,#pageRotateCcw,#pageRotateCcw + .horizontalToolbarSeparator{display:none !important;}'; $css .= '#viewBookmark,#print,#download{display:none !important}'; -- 2.39.5