MDL-28277 SCORM some whitespace and MOODLE_INTERNAL fixes
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 9 Nov 2011 00:30:51 +0000 (01:30 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 9 Nov 2011 00:30:51 +0000 (01:30 +0100)
mod/scorm/report/interactions/lang/en/scormreport_interactions.php
mod/scorm/report/interactions/report.php
mod/scorm/report/interactions/responsessettings_form.php

index 6d55b17..be78f52 100644 (file)
@@ -23,6 +23,8 @@
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
+defined('MOODLE_INTERNAL') || die();
+
 $string['pluginname'] = 'Interactions Report';
 $string['questionx'] = 'Question {$a}';
 $string['responsex'] = 'Response {$a}';
index 4de69bf..219db4c 100644 (file)
@@ -212,7 +212,7 @@ class scorm_interactions_report extends scorm_default_report {
                 $table->no_sorting('start');
                 $table->no_sorting('finish');
                 $table->no_sorting('score');
-                
+
                 foreach ($scoes as $sco) {
                     if ($sco->launch != '') {
                         $table->no_sorting('scograde'.$sco->id);
index d182b5f..7a73476 100644 (file)
@@ -22,9 +22,7 @@
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-if (!defined('MOODLE_INTERNAL')) {
-    die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
-}
+defined('MOODLE_INTERNAL') || die();
 
 require_once("$CFG->libdir/formslib.php");
 class mod_scorm_report_interactions_settings extends moodleform {