mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 10:40:12 +00:00
fixes
This commit is contained in:
parent
6fa9237285
commit
bb553f252d
@ -1,3 +1,15 @@
|
|||||||
|
Allow users to backdate notices
|
||||||
|
|
||||||
|
autmate regeneration of HTML when user uses CGI
|
||||||
|
interface
|
||||||
|
|
||||||
|
Put the C in all build cells.
|
||||||
|
|
||||||
|
VC code did the wrong thing when generating old pages and there was
|
||||||
|
no TreeState data.
|
||||||
|
|
||||||
|
Fix Spelling mistakes thoughout code.
|
||||||
|
|
||||||
Add support for build machines to tell the server to add text/links
|
Add support for build machines to tell the server to add text/links
|
||||||
into build cells (TinderboxPrint).
|
into build cells (TinderboxPrint).
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
# on the tinderbox status page.
|
# on the tinderbox status page.
|
||||||
|
|
||||||
|
|
||||||
# $Revision: 1.16 $
|
# $Revision: 1.17 $
|
||||||
# $Date: 2002/04/27 02:31:08 $
|
# $Date: 2002/04/27 03:23:00 $
|
||||||
# $Author: kestes%walrus.com $
|
# $Author: kestes%walrus.com $
|
||||||
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/bin/addnote.cgi,v $
|
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/bin/addnote.cgi,v $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
@ -135,6 +135,11 @@ sub get_params {
|
|||||||
|
|
||||||
if (param("effectivetime")) {
|
if (param("effectivetime")) {
|
||||||
$EFFECTIVE_TIME = timestring2time( param("effectivetime") );
|
$EFFECTIVE_TIME = timestring2time( param("effectivetime") );
|
||||||
|
|
||||||
|
# allow people to backdate notices but not forward date them.
|
||||||
|
if ($EFFECTIVE_TIME > $TIME) {
|
||||||
|
$EFFECTIVE_TIME = $TIME;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$EFFECTIVE_TIME = time();
|
$EFFECTIVE_TIME = time();
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
# the completed string before it is returned.
|
# the completed string before it is returned.
|
||||||
|
|
||||||
|
|
||||||
# $Revision: 1.15 $
|
# $Revision: 1.16 $
|
||||||
# $Date: 2002/04/27 01:13:08 $
|
# $Date: 2002/04/27 03:22:57 $
|
||||||
# $Author: kestes%walrus.com $
|
# $Author: kestes%walrus.com $
|
||||||
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm,v $
|
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm,v $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
@ -238,8 +238,10 @@ sub split_cgi_args {
|
|||||||
|
|
||||||
sub regenerate_HTML_pages {
|
sub regenerate_HTML_pages {
|
||||||
my $old_query_string = $ENV{"QUERY_STRING"};
|
my $old_query_string = $ENV{"QUERY_STRING"};
|
||||||
|
my $old_request_method = $ENV{"REQUEST_METHOD"};
|
||||||
|
|
||||||
$ENV{"QUERY_STRING"} = '';
|
$ENV{"QUERY_STRING"} = '';
|
||||||
|
$ENV{"REQUEST_METHOD"} = '';
|
||||||
|
|
||||||
system(
|
system(
|
||||||
$FileStructure::CGIBIN_DIR.'tinder.cgi',
|
$FileStructure::CGIBIN_DIR.'tinder.cgi',
|
||||||
@ -247,6 +249,7 @@ sub regenerate_HTML_pages {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$ENV{"QUERY_STRING"} = $old_query_string;
|
$ENV{"QUERY_STRING"} = $old_query_string;
|
||||||
|
$ENV{"REQUEST_METHOD"} = $old_request_method;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ use Utils;
|
|||||||
use HTMLPopUp;
|
use HTMLPopUp;
|
||||||
use TinderDB::BasicTxtDB;
|
use TinderDB::BasicTxtDB;
|
||||||
|
|
||||||
$VERSION = ( qw $Revision: 1.15 $ )[1];
|
$VERSION = ( qw $Revision: 1.16 $ )[1];
|
||||||
|
|
||||||
@ISA = qw(TinderDB::BasicTxtDB);
|
@ISA = qw(TinderDB::BasicTxtDB);
|
||||||
|
|
||||||
@ -252,11 +252,11 @@ sub render_notice {
|
|||||||
# also tell when the note was really posted.
|
# also tell when the note was really posted.
|
||||||
|
|
||||||
my $localpostedtime;
|
my $localpostedtime;
|
||||||
if ($notice->{'time'} != $notice->{'posttime'}) {
|
if ( $notice->{'posttime'} - $notice->{'time'} > $main::SECONDS_PER_HOUR) {
|
||||||
$localpostedtime = (
|
$localpostedtime = (
|
||||||
"(Actually posted at: ".
|
"<br>(Actually posted at: ".
|
||||||
$notice->{'localpostedtime'}.
|
$notice->{'localposttime'}.
|
||||||
")".
|
")\n".
|
||||||
"");
|
"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user