diff --git a/public/main/inc/lib/display.lib.php b/public/main/inc/lib/display.lib.php index c74a282bf8..84db9dae55 100644 --- a/public/main/inc/lib/display.lib.php +++ b/public/main/inc/lib/display.lib.php @@ -841,12 +841,6 @@ class Display $filterPath = true ) { if (empty($image_path)) { - // For some reason, the call to img() happened without a proper - // image. Log the error and return an empty string to avoid - // breaking the HTML - $trace = debug_backtrace(); - $caller = $trace[1]; - //error_log('No image provided in Display::img(). Caller info: '.print_r($caller, 1)); return ''; } // Sanitizing the parameter $image_path @@ -2830,8 +2824,9 @@ HTML; } $lpJs = api_get_path(WEB_PUBLIC_PATH).'build/lp.js'; - //{type:"script", src:"'.api_get_jquery_ui_js_web_path().'"}, - //{type:"script", src: "'.$webPublicPath.'build/libs/mediaelement/plugins/markersrolls/markersrolls.js"}, + // {type:"script", src:"'.api_get_jquery_ui_js_web_path().'"}, + // {type:"script", src: "'.$webPublicPath.'build/libs/mediaelement/plugins/markersrolls/markersrolls.js"}, + // {type:"script", src:"'.$webPublicPath.'build/libs/mathjax/MathJax.js?config=AM_HTMLorMML"}, $videoFeatures = implode("','", $videoFeatures); $frameReady = ' $.frameReady(function() { @@ -2860,8 +2855,6 @@ HTML; '.$translateHtml.' ]}, '.$videoPluginCssFiles.' - {type:"script", src:"'.$webPublicPath.'build/libs/mathjax/MathJax.js?config=AM_HTMLorMML"}, - ]);'; return $frameReady; diff --git a/public/main/lp/learnpath.class.php b/public/main/lp/learnpath.class.php index 58278ce73a..136c700c4e 100644 --- a/public/main/lp/learnpath.class.php +++ b/public/main/lp/learnpath.class.php @@ -6371,7 +6371,7 @@ class learnpath } if ($allowExpand) { - $actionsLeft .= Display::url( + /*$actionsLeft .= Display::url( Display::return_icon( 'expand.png', get_lang('Expand'), @@ -6386,7 +6386,7 @@ class learnpath ), '#', ['role' => 'button', 'id' => 'hide_bar_template'] - ); + );*/ } if ($showRequirementButtons) { diff --git a/public/main/lp/lp_edit.php b/public/main/lp/lp_edit.php index eab95095ac..7baf83eab9 100644 --- a/public/main/lp/lp_edit.php +++ b/public/main/lp/lp_edit.php @@ -3,6 +3,7 @@ /* For licensing terms, see /license.txt */ use Chamilo\CoreBundle\Framework\Container; +use Chamilo\CourseBundle\Entity\CLp; use ChamiloSession as Session; /** @@ -24,7 +25,7 @@ if (empty($lpId)) { } $lpId = (int) $lpId; -/** @var \Chamilo\CourseBundle\Entity\CLp $lp */ +/** @var CLp $lp */ $lp = $lpRepo->find($lpId); $nameTools = get_lang('Document'); @@ -172,7 +173,7 @@ $expired_on = $learnPath->expired_on; $publicated_on = $learnPath->publicated_on; // Prerequisites -$form->addElement('html', '