| 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: |
4 | # $CVSHeader: $ |
| 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. |
| … | |
… | |
| 505 | my $sect = $r->param('library_sections') || ""; |
505 | my $sect = $r->param('library_sections') || ""; |
| 506 | $sect = "" if($sect eq "All Sections"); |
506 | $sect = "" if($sect eq "All Sections"); |
| 507 | my @dbsearch = WeBWorK::Utils::ListingDB::getSectionListings($r->{ce}, "$chap", "$sect"); |
507 | my @dbsearch = WeBWorK::Utils::ListingDB::getSectionListings($r->{ce}, "$chap", "$sect"); |
| 508 | my ($result, $tolibpath); |
508 | my ($result, $tolibpath); |
| 509 | for $result (@dbsearch) { |
509 | for $result (@dbsearch) { |
| 510 | $tolibpath = "$result->{path}/$result->{filename}"; |
510 | $tolibpath = "Library/$result->{path}/$result->{filename}"; |
| 511 | $tolibpath =~ s|^/ud/jj/src/Database/Libs|Library|; |
|
|
| 512 | |
511 | |
| 513 | ## Too clunky!!!! |
512 | ## Too clunky!!!! |
| 514 | push @pg_files, $tolibpath; |
513 | push @pg_files, $tolibpath; |
| 515 | } |
514 | } |
| 516 | $use_previous_problems=0; |
515 | $use_previous_problems=0; |