From: danmarsden Date: Fri, 5 Dec 2008 02:50:17 +0000 (+0000) Subject: rename api.php file:MDL-17515: Moodle API will treat files called api.php in a specia... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=43f4e520bedbedd63c9f484e42b21f3840286455;p=moodle.git rename api.php file:MDL-17515: Moodle API will treat files called api.php in a special way.... --- diff --git a/mod/scorm/api.php b/mod/scorm/loaddatamodel.php similarity index 100% rename from mod/scorm/api.php rename to mod/scorm/loaddatamodel.php diff --git a/mod/scorm/player.php b/mod/scorm/player.php index cc9b85890f..a24d9499e0 100755 --- a/mod/scorm/player.php +++ b/mod/scorm/player.php @@ -46,10 +46,10 @@ $strexit = get_string('exitactivity','scorm'); $navlinks = array(); - + if ($course->id != SITEID) { if ($scorms = get_all_instances_in_course('scorm', $course)) { - // The module SCORM/AICC activity with the first id is the course + // The module SCORM/AICC activity with the first id is the course $firstscorm = current($scorms); if (!(($course->format == 'scorm') && ($firstscorm->id == $scorm->id))) { $navlinks[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity'); @@ -61,7 +61,7 @@ if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE,$course->id))) { $navlinks[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance'); $navigation = build_navigation($navlinks); - + print_header($pagetitle, $course->fullname, $navigation, '', '', true, update_module_button($cm->id, $course->id, $strscorm), '', false); notice(get_string("activityiscurrentlyhidden")); @@ -125,7 +125,7 @@ } add_to_log($course->id, 'scorm', 'view', "player.php?id=$cm->id&scoid=$sco->id", "$scorm->id", $cm->id); - + $scoidstr = '&scoid='.$sco->id; $scoidpop = '&scoid='.$sco->id; @@ -153,21 +153,21 @@ $navlinks[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance'); $navigation = build_navigation($navlinks); $exitlink = ''.$strexit.' '; - + print_header($pagetitle, $course->fullname, $navigation, '', '', true, $exitlink.update_module_button($cm->id, $course->id, $strscorm), '', false, $bodyscript); //if ($sco->scormtype == 'sco') { ?> - +
-hidetoc == 0) { ?>
@@ -241,13 +241,13 @@ ( ($sco->previd != 0) && // This is not the first learning object of the package ((!isset($sco->previous)) || ($sco->previous == 0)) // Moodle must manage the previous link - ) || + ) || ( ($sco->nextid != 0) && // This is not the last learning object of the package ((!isset($sco->next)) || ($sco->next == 0)) // Moodle must manage the next link - ) + ) ) - ) || ($scorm->hidetoc == 2) // Teacher want to display toc in a small dropdown menu + ) || ($scorm->hidetoc == 2) // Teacher want to display toc in a small dropdown menu ) { ?>
@@ -285,7 +285,7 @@ ?>
popup == 0) { echo " \n"; $fullurl="loadSCO.php?id=".$cm->id.$scoidstr.$modestr; - echo " \n"; + echo " \n"; } else { // Clean the name for the window as IE is fussy $name = ereg_replace("[^A-Za-z0-9]", "", $scorm->name); @@ -321,7 +321,7 @@ if ((width==100) && (height==100)) { // Fullscreen windowobj.moveTo(0,0); - } + } if (width<=100) { width = Math.round(screen.availWidth * width / 100); } @@ -343,10 +343,10 @@ -wwwroot.'/mod/scorm/loadSCO.php?id='.$cm->id.$scoidstr.$modestr.'" target="new">'.get_string('popupblockedlinkname','scorm').''; - print_simple_box(get_string('popupblocked','scorm',$link),'center'); + print_simple_box(get_string('popupblocked','scorm',$link),'center'); } } else { print_simple_box(get_string('noprerequisites','scorm'),'center');