Skip to content

Commit

Permalink
remove warning of test site
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jan 22, 2010
1 parent 87a76d7 commit 6c9fd53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions lib/CPAN/Forum.pm
Expand Up @@ -593,7 +593,6 @@ sub cgiapp_prerun {
);

$self->tt_params(
"test_site_warning" => (-e $self->param("ROOT") . "/config_test_site"),
"dev_server" => ( $ENV{CPAN_FORUM_DEV} ? 1 : 0 ),
);

Expand Down Expand Up @@ -935,7 +934,6 @@ sub load_tmpl {
);
$t->param( "loggedin" => $self->session->param("loggedin") || "" );
$t->param( "username" => $self->session->param("username") || "anonymous" );
$t->param( "test_site_warning" => -e $self->param("ROOT") . "/config_test_site" );
$t->param( "admin" => $self->session->param('admin') );
$t->param( "dev_server" => ( $ENV{CPAN_FORUM_DEV} ? 1 : 0 ) );
return $t;
Expand Down
6 changes: 1 addition & 5 deletions tt/incl/header.tt
Expand Up @@ -11,11 +11,7 @@
</head>

<body>
[% IF test_site_warning %]
<p class="warning">Warning: this is a test site, the data here will be deleted.<br />
For real use, please visit the <a href="http://cpanforum.com/">the live site</a>.</p>
[% END %]


<p id="pageHeader">CPAN::Forum</p>

<p id="pageTitle">[% pagetitle %]</p>
Expand Down
5 changes: 0 additions & 5 deletions tt/pages/popup/modules_with_tags.tt
Expand Up @@ -12,11 +12,6 @@ function show(url) {
<body>
[% IF loggedin %]You are logged in to CPAN::Forum as [% username %][% END %]
[% IF admin %][% END %]
[% IF test_site_warning %]
<p class="warning">Warning: this is a test site, the data here will be deleted.</p>
[% END %]




<p>Modules with tag <b>[% tag %]</b></p>
Expand Down

0 comments on commit 6c9fd53

Please sign in to comment.