[system] / trunk / wwmoodle / wwassignment / view.php Repository:
ViewVC logotype

Diff of /trunk/wwmoodle/wwassignment/view.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5035 Revision 5036
1<?php 1<?php
2// $Id: view.php,v 1.3 2007-06-25 21:03:30 mleventi Exp $ 2// $Id: view.php,v 1.4 2007-06-26 06:46:33 mleventi Exp $
3 3
4/// This page prints a particular instance of wwassignment 4/// This page prints a particular instance of wwassignment
5/// (Replace wwassignment with the name of your module) 5/// (Replace wwassignment with the name of your module)
6 6
7 7
41 } 41 }
42 if ($wwassignment->webwork_set == "undefined") { 42 if ($wwassignment->webwork_set == "undefined") {
43 delete_records("wwassignment","webwork_set","undefined"); 43 delete_records("wwassignment","webwork_set","undefined");
44 delete_course_module($cm->id); 44 delete_course_module($cm->id);
45 redirect("../../course/view.php?id=$course->id"); 45 redirect("../../course/view.php?id=$course->id");
46 die();
46 } 47 }
47} 48}
48
49require_login($course->id); 49require_login($course->id);
50 50
51$webworksetlink = wwassignment_view_link($wwassignment->id); 51$webworksetlink = wwassignment_view_link($wwassignment->id);
52 52
53add_to_log($course->id, "wwassignment", "view", "view.php?id=$cm->id", "$wwassignment->id"); 53add_to_log($course->id, "wwassignment", "view", "view.php?id=$cm->id", "$wwassignment->id");

Legend:
Removed from v.5035  
changed lines
  Added in v.5036

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9