[prev] [thread] [next] [lurker] [Date index for 2003/11/25]
Author: jon
Date: 2003-11-25 13:09:26 +0200 (Tue, 25 Nov 2003)
New Revision: 44
Modified:
lib/YAPC/Config.pm
lib/YAPC/Organizer.pm
Log:
fix for no page
Modified: lib/YAPC/Config.pm
===================================================================
--- lib/YAPC/Config.pm 2003-11-25 09:31:37 UTC (rev 43)
+++ lib/YAPC/Config.pm 2003-11-25 11:09:26 UTC (rev 44)
@@ -4,11 +4,11 @@
our (@STORAGE, $dir, $db_dir, $db_file, $TIMEOUT, $templates_dir, $email_address);
our (@proposal_languages, @proposal_lengths, @admins);
-$dir = "/home/gabor/projects/perl/perl.org.il/YAPC/dev";
-$email_address = 'yapc@xxxx.xxx.xx';
+$dir = "/home/yehuda/Yapcom";
+$email_address = 'jon@xxxxxx.xx.xx';
# list of e-mail address of administrators whom will have extra rights
-#@admins = qw(gabor@xxxx.xxx.xx);
+@admins = qw(jon@xxxxxx.xx.xx);
$db_dir = "$dir/db";
@@ -21,8 +21,6 @@
@proposal_lengths = (5, 30, 60, 90, 180);
@proposal_languages = qw(English Hebrew);
-@admins = qw(gabor@xxx.xx.xx);
-
1;
=head1 VERSION
Modified: lib/YAPC/Organizer.pm
===================================================================
--- lib/YAPC/Organizer.pm 2003-11-25 09:31:37 UTC (rev 43)
+++ lib/YAPC/Organizer.pm 2003-11-25 11:09:26 UTC (rev 44)
@@ -265,13 +265,25 @@
}
};
- my $t = $self->load_tmpl(
- "$page.tmpl",
+# eval, because sub dies if template doesn't exists
+ my $t;
+ eval {
+ $t = $self->load_tmpl(
+ "$page.tmpl",
+ die_on_bad_params => 0,
+ filter => $filter,
+ associate => $q,
+ path => $templates_dir,
+ );
+ };
+
+ $t = $self->load_tmpl(
+ "error.tmpl",
die_on_bad_params => 0,
filter => $filter,
associate => $q,
path => $templates_dir,
- );
+ ) if $@;
$t->param(%h);
$t->param(VERSION => $YAPC::Organizer::VERSION);
Generated at 14:06 on 25 Nov 2003 by mariachi 0.51