From: Chris W. <la...@us...> - 2004-12-05 21:02:19
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/ContentGenerator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7527 Modified Files: TemplateSource.pm Log Message: require OI2::SiteTemplate manually (will eliminate all 'template' lookups later) Index: TemplateSource.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/ContentGenerator/TemplateSource.pm,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** TemplateSource.pm 18 Feb 2004 05:25:27 -0000 1.11 --- TemplateSource.pm 5 Dec 2004 21:02:08 -0000 1.12 *************** *** 8,11 **** --- 8,12 ---- use OpenInteract2::Context qw( CTX ); use OpenInteract2::Exception qw( oi_error ); + use OpenInteract2::SiteTemplate; $OpenInteract2::ContentGenerator::TemplateSource::VERSION = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/); *************** *** 92,96 **** sub load_source { my ( $class, $name ) = @_; ! my $content_template = CTX->lookup_class( 'template' )->fetch( $name ); unless ( $content_template ) { oi_error "Template with name [$name] not found."; --- 93,97 ---- sub load_source { my ( $class, $name ) = @_; ! my $content_template = OpenInteract2::SiteTemplate->fetch( $name ); unless ( $content_template ) { oi_error "Template with name [$name] not found."; *************** *** 224,226 **** =head1 AUTHORS ! Chris Winters E<lt>ch...@cw...E<gt> \ No newline at end of file --- 225,227 ---- =head1 AUTHORS ! Chris Winters E<lt>ch...@cw...E<gt> |