~ubuntu-branches/ubuntu/dapper/moodle/dapper-backports

« back to all changes in this revision

Viewing changes to mod/assignment/submissions.php

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2006-12-01 14:00:21 UTC
  • mfrom: (6.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061201140021-rivugg5tgx6mujzg
Tags: 1.6.3-1ubuntu1~dapper1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php  // $Id: submissions.php,v 1.40 2005/04/17 15:38:02 moodler Exp $
 
1
<?php  // $Id: submissions.php,v 1.41.2.1 2006/08/10 15:30:53 skodak Exp $
2
2
 
3
3
    require_once("../../config.php");
4
4
    require_once("lib.php");
5
5
 
6
 
    $id      = optional_param('id');            // Course module ID
7
 
    $a       = optional_param('a');             // Assignment ID
8
 
    $mode    = optional_param('mode', 'all');   // What mode are we in?
 
6
    $id   = optional_param('id', 0, PARAM_INT);          // Course module ID
 
7
    $a    = optional_param('a', 0, PARAM_INT);           // Assignment ID
 
8
    $mode = optional_param('mode', 'all', PARAM_ALPHA);  // What mode are we in?
9
9
 
10
10
    if ($id) {
11
 
        if (! $cm = get_record("course_modules", "id", $id)) {
 
11
        if (! $cm = get_coursemodule_from_id('assignment', $id)) {
12
12
            error("Course Module ID was incorrect");
13
13
        }
14
14