Skip to content

Commit

Permalink
Merge pull request openwebwork#86 from openwebwork/hotfix1
Browse files Browse the repository at this point in the history
Hotfix1
  • Loading branch information
mgage committed Jun 26, 2013
2 parents e013b7d + ddceace commit 3deec62
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion conf/localOverrides.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ $webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/
#$problemLibrary{root} = "/opt/webwork/libraries/NationalProblemLibrary";
#$problemLibrary{version} = "2";
# uncomment these lines below and comment out the line above if using OPL instead of NPL
$problemLibrary{root} = "/opt/webwork/library/webwork-open-problem-library/OpenProblemLibrary";
$problemLibrary{root} = "/opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary";
$problemLibrary{version} = "2.5";

# Additional library buttons can be added to the Library Browser (SetMaker.pm)
Expand Down
1 change: 0 additions & 1 deletion lib/WeBWorK.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ C<WeBWorK::ContentGenerator> to call.
=cut

BEGIN { $main::VERSION = "2.4.9"; }

use strict;
use warnings;
Expand Down
4 changes: 2 additions & 2 deletions lib/WeBWorK/AchievementEvaluator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use warnings;
use WeBWorK::CGI;
use WeBWorK::Utils qw(before after readFile sortAchievements);

use Safe;
use WWSafe;
use Storable qw(nfreeze thaw);

sub checkForAchievements {
Expand Down Expand Up @@ -75,7 +75,7 @@ sub checkForAchievements {
our $localData = {};
our $globalData = {};

my $compartment = new Safe;
my $compartment = new WWSafe;

#initialize things that are ""
if (not $achievementPoints) {
Expand Down
11 changes: 7 additions & 4 deletions lib/WeBWorK/ContentGenerator/CourseAdmin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3179,11 +3179,14 @@ Check the ownership and permissions of the course's directory, e.g $coursesDir/$
# registration forms added by Mike Gage 5-5-2008
################################################################################

our $registered_file_name = "registered_$main::VERSION";

our $registered_file_name = "registered_???";

sub display_registration_form {
my $self = shift;
my $ce = $self->r->ce;
my $ww_version = $ce->{WW_VERSION};
$registered_file_name = "registered_$ww_version";
my $registeredQ = (-e ($ce->{courseDirs}->{root})."/$registered_file_name")?1:0;
my $registration_subDisplay = ( defined($self->r->param('subDisplay') ) and $self->r->param('subDisplay') eq "registration") ? 1: 0;
my $register_site = ($self->r->param("register_site"))?1:0;
Expand All @@ -3196,8 +3199,8 @@ sub display_registration_form {
CGI::p("If you are using your WeBWorK server for courses please help us out by registering your server."),
CGI::p("We are often asked how many institutions are using WeBWorK and how many students are using
WeBWorK. Since WeBWorK is open source and can be freely downloaded from ".
CGI::a({href=>'http://webwork.maa.org'},'http://webwork.maa.org' ). " and ".
CGI::a({href=> 'http://www.openwebwork.org'},'http://www.openwebwork.org'). ", it is frequently
CGI::a({href=>'http://webwork.maa.org'},'http://webwork.maa.org' ). " or ".
CGI::a({href=> 'http://webwork.maa.org/wiki'},'http://webwork.maa.org/wiki'). ", it is frequently
difficult for us to give a reasonable answer to this question."),
CGI::p("You can help by registering your current version of WeBWorK -- click the button, answer a few
questions (the ones you can answer easily) and submit the form to the MAA.
Expand Down Expand Up @@ -3275,7 +3278,7 @@ sub registration_form {
print $self->hidden_fields("subDisplay");
print CGI::p({style=>"text-align: center"}, CGI::submit(-id => "register_site", -name=>"register_site", -label=>"Site has been registered"));
print CGI::end_form();
print q!<script type="text/javascript">
# print q!<script type="text/javascript">
# $("#maa_content").load( alert("loaded") );
# $("#return_to_main_page").append(
# "<center><p>hey site is registered cool</p></center>"
Expand Down
4 changes: 1 addition & 3 deletions lib/WebworkWebservice/RenderProblem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ use base qw(WebworkWebservice);
my $debugXmlCode=1; # turns on the filter for debugging XMLRPC and SOAP code
local(*DEBUGCODE);

BEGIN {
$main::VERSION = "2.5";
}




Expand Down

0 comments on commit 3deec62

Please sign in to comment.