Skip to content

Commit

Permalink
Merge pull request ILIAS-eLearning#7073 from utesche/scorm_favicon
Browse files Browse the repository at this point in the history
bugfix 40577: SCORM player ignores favicon.ico from custom style
  • Loading branch information
Uwe-Kohnle authored Feb 20, 2024
2 parents 9950d97 + 219636a commit a543e43
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions Modules/Scorm2004/classes/class.ilSCORM13PlayerGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ public function getPlayer(): void
$this->tpl->setVariable($key, $value);
}
$this->tpl->setVariable('DOC_TITLE', 'ILIAS: ' . $this->slm->getTitle());
$this->tpl->setVariable("LOCATION_FAVICON", ilUtil::getImagePath("favicon.ico", ""));
$this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$this->tpl->setVariable('INIT_CP_DATA', json_encode(json_decode($this->getCPDataInit())));
$this->tpl->setVariable('INIT_CMI_DATA', json_encode($this->getCMIData($this->userId, $this->packageId)));
Expand Down
4 changes: 2 additions & 2 deletions Modules/Scorm2004/templates/default/tpl.scorm2004.player.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" id="scormplayer">
<head>
<title>{DOC_TITLE}</title>
<link rel="icon" href="./templates/default/images/favicon.ico" type="image/x-icon" />
<link rel="icon" href="{LOCATION_FAVICON}" type="image/x-icon" />
<meta name="viewport" content="user-scalable=yes, initial-scale=1.0, width=device-width">
<meta name="apple-mobile-web-app-capable" content="yes">

Expand Down Expand Up @@ -85,4 +85,4 @@
</script>

</body>
</html>
</html>
24 changes: 24 additions & 0 deletions templates/default/images/scorm/browsed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a543e43

Please sign in to comment.