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

« back to all changes in this revision

Viewing changes to mod/assignment/index.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: index.php,v 1.23.2.2 2005/05/31 23:18:54 moodler Exp $
 
1
<?php // $Id: index.php,v 1.26 2006/04/05 07:46:52 gustav_delius Exp $
2
2
 
3
3
    require_once("../../config.php");
4
4
    require_once("lib.php");
5
5
 
6
 
    require_variable($id);   // course
 
6
    $id = required_param('id', PARAM_INT);   // course
7
7
 
8
8
    if (! $course = get_record("course", "id", $id)) {
9
9
        error("Course ID is incorrect");