Changeset 14926 for gsdl/trunk/perllib/util.pm
- Timestamp:
- 2007-12-20T16:16:12+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/util.pm
r14365 r14926 29 29 use File::Basename; 30 30 31 use strict; 32 31 33 32 34 # removes files (but not directories) … … 758 760 } 759 761 762 763 764 765 # will return the collection name if successful, "" otherwise. 766 # Like use_collection (above) but for greenstone 3 (taking account of site level) 767 768 sub use_site_collection { 769 my ($site, $collection, $collectdir) = @_; 770 771 if (!defined $collectdir || $collectdir eq "") { 772 die "GSDL3HOME not set.\n" unless defined $ENV{'GSDL3HOME'}; 773 $collectdir = &filename_cat ($ENV{'GSDL3HOME'}, "sites", $site, "collect"); 774 } 775 776 # collectdir explicitly set by this point (using $site variable if required). 777 # Can call "old" gsdl2 use_collection now. 778 779 return use_collection($collection,$collectdir); 780 } 781 782 783 760 784 sub hyperlink_text 761 785 {
Note:
See TracChangeset
for help on using the changeset viewer.