Skip to content

Commit

Permalink
Some minor changes in order to avoid some notices...
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jun 25, 2006
1 parent b750410 commit 459154f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion grade/lib.php
@@ -1,10 +1,15 @@
<?php // $Id$ <?php // $Id$


require_once('../config.php'); if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}

require_once($CFG->dirroot.'/course/lib.php'); require_once($CFG->dirroot.'/course/lib.php');


define('UNCATEGORISED', 'uncategorised'); define('UNCATEGORISED', 'uncategorised');


global $GRADEPREFS, $GRADEPREFSDEFAULTS; // This variables are going to be global... :-/

$GRADEPREFS = array('use_advanced', // Only add new preferences to the end of this array! $GRADEPREFS = array('use_advanced', // Only add new preferences to the end of this array!
'use_weighted_for_letter', // as the order counts and will affect backward compatibility 'use_weighted_for_letter', // as the order counts and will affect backward compatibility
'display_weighted', 'display_weighted',
Expand Down

0 comments on commit 459154f

Please sign in to comment.