From: Chris W. <la...@us...> - 2004-11-28 01:03:10
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/ContentGenerator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14697/ContentGenerator Modified Files: TT2Process.pm Log Message: move compilation directory configuration location from 'dir' to with the rest of the TT stuff Index: TT2Process.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/ContentGenerator/TT2Process.pm,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** TT2Process.pm 27 Sep 2004 03:18:45 -0000 1.19 --- TT2Process.pm 28 Nov 2004 01:02:50 -0000 1.20 *************** *** 189,193 **** : DEFAULT_CACHE_SIZE; my $compile_ext = $init_params->{compile_ext} || DEFAULT_COMPILE_EXT; ! my $compile_dir = CTX->lookup_directory( 'cache_tt' ); # If the compile_dir isn't specified, be sure to set it **and** --- 189,199 ---- : DEFAULT_CACHE_SIZE; my $compile_ext = $init_params->{compile_ext} || DEFAULT_COMPILE_EXT; ! ! # Since we've moved the cache configuration give a default ! ! my $base_compile_dir = $init_params->{compile_dir} || 'cache/tt'; ! my $compile_dir = File::Spec->catdir( ! CTX->lookup_directory( 'website' ), $base_compile_dir ! ); # If the compile_dir isn't specified, be sure to set it **and** *************** *** 202,209 **** $self->{_plugin_class}{OI} = 'OpenInteract2::TT2::Plugin'; ! return { PLUGINS => { OI => 'OpenInteract2::TT2::Plugin' }, ! CACHE_SIZE => $cache_size, ! COMPILE_DIR => $compile_dir, ! COMPILE_EXT => $compile_ext }; } --- 208,217 ---- $self->{_plugin_class}{OI} = 'OpenInteract2::TT2::Plugin'; ! return { ! PLUGINS => { OI => 'OpenInteract2::TT2::Plugin' }, ! CACHE_SIZE => $cache_size, ! COMPILE_DIR => $compile_dir, ! COMPILE_EXT => $compile_ext ! }; } |