[system] / branches / ghe3_dev / webwork2 / lib / WeBWorK.pm Repository:
ViewVC logotype

Diff of /branches/ghe3_dev/webwork2/lib/WeBWorK.pm

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

Revision 2097 Revision 2098
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: webwork-modperl/lib/WeBWorK.pm,v 1.53 2004/03/16 20:00:23 sh002i Exp $ 4# $CVSHeader: webwork-modperl/lib/WeBWorK.pm,v 1.54 2004/03/23 01:04:02 sh002i Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
35=cut 35=cut
36 36
37BEGIN { $main::VERSION = "2.0"; } 37BEGIN { $main::VERSION = "2.0"; }
38 38
39 39
40my $timingON = 1; 40my $timingON = 0;
41 41
42use strict; 42use strict;
43use warnings; 43use warnings;
44use Apache::Constants qw(:common REDIRECT DONE); 44use Apache::Constants qw(:common REDIRECT DONE);
45use WeBWorK::Authen; 45use WeBWorK::Authen;
46use WeBWorK::Authz; 46use WeBWorK::Authz;
47use WeBWorK::CourseEnvironment; 47use WeBWorK::CourseEnvironment;
48use WeBWorK::DB; 48use WeBWorK::DB;
49#use WeBWorK::Timing; 49use WeBWorK::Timing;
50use WeBWorK::Upload; 50use WeBWorK::Upload;
51use WeBWorK::Utils qw(runtime_use); 51use WeBWorK::Utils qw(runtime_use);
52use WeBWorK::Request; 52use WeBWorK::Request;
53use WeBWorK::URLPath; 53use WeBWorK::URLPath;
54 54
231 my $instance = $displayModule->new($r); 231 my $instance = $displayModule->new($r);
232 232
233 debug("...and call it:\n"); 233 debug("...and call it:\n");
234 debug("-------------------- call to ${displayModule}::go\n"); 234 debug("-------------------- call to ${displayModule}::go\n");
235 235
236 $WeBWorK::timer = WeBWorK::Timing->new("$displayArgs{courseID}") if $timingON;
237 $WeBWorK::timer -> start() if $timingON;
236 my $result = $instance->go(); 238 my $result = $instance->go();
237 239
238 debug("-------------------- call to ${displayModule}::go\n"); 240 debug("-------------------- call to ${displayModule}::go\n");
239 241
240 debug("returning result: " . (defined $result ? $result : "UNDEF") . "\n"); 242 debug("returning result: " . (defined $result ? $result : "UNDEF") . "\n");
241 243 $WeBWorK::timer -> save() if $timingON;
242 return $result; 244 return $result;
245
243} 246}
244 247
245sub mungeParams { 248sub mungeParams {
246 my ($r) = @_; 249 my ($r) = @_;
247 250

Legend:
Removed from v.2097  
changed lines
  Added in v.2098

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9