Skip to content

Commit

Permalink
Add a VERSION file for PG.
Browse files Browse the repository at this point in the history
In order to reach it cleanly there needs to be a link PG_VERSION in webwork2/ to the file pg/VERSION.
  • Loading branch information
mgage committed Sep 7, 2012
1 parent 3daecc4 commit 86be5c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions PG_VERSION
4 changes: 3 additions & 1 deletion conf/defaults.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
# file, you can put a directive in localOverrides.conf.

include("conf/site.conf");
include("VERSION");
include("VERSION"); # get WW version
include("PG_VERSION"); # get PG VERSION -- # these addresses are fragile. Should we change the way include() works?

################################################################################
# site.conf should contain basic information about directories and URLs on
# your server
Expand Down
5 changes: 3 additions & 2 deletions lib/WeBWorK/ContentGenerator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1019,10 +1019,11 @@ sub footer(){
my $self = shift;
my $r = $self->r;
my $ce = $r->ce;
my $version = $ce->{WW_VERSION}||"unknown -- set version in defaults.config";
my $ww_version = $ce->{WW_VERSION}||"unknown -- set version in defaults.config";
my $pg_version = $ce->{PG_VERSION}||"unknown -- set version in defaults.config";
my $copyright_years = $ce->{WW_COPYRIGHT_YEARS}||"1996-2011";
print CGI::p({-id=>"last-modified"}, $r->maketext("Page generated at [_1]", timestamp($self)));
print CGI::div({-id=>"copyright"}, "WeBWorK © $copyright_years", "| version: $version |", CGI::a({-href=>"http://webwork.maa.org/"}, $r->maketext("The WeBWorK Project"), ));
print CGI::div({-id=>"copyright"}, "WeBWorK © $copyright_years", "| ww_version: $ww_version | pg_version: $pg_version|", CGI::a({-href=>"http://webwork.maa.org/"}, $r->maketext("The WeBWorK Project"), ));
return ""
}

Expand Down

0 comments on commit 86be5c0

Please sign in to comment.