Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7f446ae8
Commit
7f446ae8
authored
Jun 20, 2006
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 313531: Move 'use Bugzilla;' out of globals.pl - Patch by Frédéric Buclin…
Bug 313531: Move 'use Bugzilla;' out of globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
parent
5ffe3d31
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
22 deletions
+30
-22
Chart.pm
Bugzilla/Chart.pm
+5
-4
buglist.cgi
buglist.cgi
+2
-0
customfield.pl
customfield.pl
+1
-0
editparams.cgi
editparams.cgi
+1
-0
editversions.cgi
editversions.cgi
+1
-0
editwhines.cgi
editwhines.cgi
+1
-0
globals.pl
globals.pl
+0
-12
index.cgi
index.cgi
+1
-0
query.cgi
query.cgi
+1
-0
quips.cgi
quips.cgi
+1
-0
sanitycheck.cgi
sanitycheck.cgi
+2
-0
sidebar.cgi
sidebar.cgi
+2
-1
testserver.pl
testserver.pl
+11
-5
whine.pl
whine.pl
+1
-0
No files found.
Bugzilla/Chart.pm
View file @
7f446ae8
...
...
@@ -36,6 +36,7 @@ use Bugzilla::Util;
use
Bugzilla::
Series
;
use
Date::
Format
;
use
Date::
Parse
;
sub
new
{
my
$invocant
=
shift
;
...
...
@@ -99,7 +100,7 @@ sub init {
# Make sure the dates are ones we are able to interpret
foreach
my
$date
(
'datefrom'
,
'dateto'
)
{
if
(
$self
->
{
$date
})
{
$self
->
{
$date
}
=
&::
str2time
(
$self
->
{
$date
})
$self
->
{
$date
}
=
str2time
(
$self
->
{
$date
})
||
&::
ThrowUserError
(
"illegal_date"
,
{
date
=>
$self
->
{
$date
}});
}
}
...
...
@@ -223,7 +224,7 @@ sub readData {
my
$datefrom
=
$dbh
->
selectrow_array
(
"SELECT MIN(series_date) "
.
"FROM series_data "
.
"WHERE series_id IN ($series_ids)"
);
$datefrom
=
&::
str2time
(
$datefrom
);
$datefrom
=
str2time
(
$datefrom
);
if
(
$self
->
{
'datefrom'
}
&&
$self
->
{
'datefrom'
}
>
$datefrom
)
{
$datefrom
=
$self
->
{
'datefrom'
};
...
...
@@ -232,7 +233,7 @@ sub readData {
my
$dateto
=
$dbh
->
selectrow_array
(
"SELECT MAX(series_date) "
.
"FROM series_data "
.
"WHERE series_id IN ($series_ids)"
);
$dateto
=
&::
str2time
(
$dateto
);
$dateto
=
str2time
(
$dateto
);
if
(
$self
->
{
'dateto'
}
&&
$self
->
{
'dateto'
}
<
$dateto
)
{
$dateto
=
$self
->
{
'dateto'
};
...
...
@@ -420,7 +421,7 @@ sub generateDateProgression {
$dateto
+=
(
2
*
$oneday
)
/
3
;
while
(
$datefrom
<
$dateto
)
{
push
(
@progression
,
&::
time2str
(
"%Y-%m-%d"
,
$datefrom
));
push
(
@progression
,
time2str
(
"%Y-%m-%d"
,
$datefrom
));
$datefrom
+=
$oneday
;
}
...
...
buglist.cgi
View file @
7f446ae8
...
...
@@ -44,6 +44,8 @@ use Bugzilla::Product;
use
Bugzilla::
Keyword
;
use
Bugzilla::
Field
;
use
Date::
Parse
;
# Include the Bugzilla CGI and general utility library.
require
"globals.pl"
;
...
...
customfield.pl
View file @
7f446ae8
...
...
@@ -29,6 +29,7 @@ use strict;
use
lib
"."
;
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Field
;
use
Getopt::
Long
;
...
...
editparams.cgi
View file @
7f446ae8
...
...
@@ -25,6 +25,7 @@
use
strict
;
use
lib
"."
;
use
Bugzilla
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Config
qw(:DEFAULT :admin :params $datadir)
;
use
Bugzilla::Config::
Common
;
...
...
editversions.cgi
View file @
7f446ae8
...
...
@@ -33,6 +33,7 @@ use lib ".";
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Config
qw(:DEFAULT $datadir)
;
use
Bugzilla::
Product
;
...
...
editwhines.cgi
View file @
7f446ae8
...
...
@@ -30,6 +30,7 @@ use strict;
use
lib
"."
;
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Constants
;
use
Bugzilla::
User
;
use
Bugzilla::
Group
;
...
...
globals.pl
View file @
7f446ae8
...
...
@@ -42,16 +42,4 @@ use Bugzilla::Error;
# of globals.pl
do
$localconfig
;
use
DBI
;
use
Date::
Format
;
# For time2str().
use
Date::
Parse
;
# For str2time().
# Use standard Perl libraries for cross-platform file/directory manipulation.
use
File::
Spec
;
############# Live code below here (that is, not subroutine defs) #############
use
Bugzilla
;
1
;
index.cgi
View file @
7f446ae8
...
...
@@ -32,6 +32,7 @@ use strict;
use
lib
"."
;
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Update
;
...
...
query.cgi
View file @
7f446ae8
...
...
@@ -30,6 +30,7 @@ use lib ".";
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Bug
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Search
;
...
...
quips.cgi
View file @
7f446ae8
...
...
@@ -29,6 +29,7 @@ use lib qw(.);
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Constants
;
my
$user
=
Bugzilla
->
login
(
LOGIN_REQUIRED
);
...
...
sanitycheck.cgi
View file @
7f446ae8
...
...
@@ -28,6 +28,8 @@ use strict;
use
lib
qw(.)
;
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Util
;
use
Bugzilla::
User
;
...
...
sidebar.cgi
View file @
7f446ae8
...
...
@@ -20,8 +20,9 @@ use strict;
use
lib
"."
;
require
"globals.pl"
;
Bugzilla
->
login
()
;
use
Bugzilla
;
Bugzilla
->
login
();
my
$cgi
=
Bugzilla
->
cgi
;
my
$template
=
Bugzilla
->
template
;
...
...
testserver.pl
View file @
7f446ae8
...
...
@@ -18,17 +18,23 @@
# as its only argument. It attempts to troubleshoot as many installation
# issues as possible.
use
strict
;
BEGIN
{
my
$envpath
=
$ENV
{
'PATH'
};
require
Bugzilla
;
$ENV
{
'PATH'
}
=
$envpath
;
}
use
lib
"."
;
use
Socket
;
use
Bugzilla::
Config
qw($datadir)
;
my
$envpath
=
$ENV
{
'PATH'
};
use
lib
"."
;
use
strict
;
require
"globals.pl"
;
eval
"require LWP; require LWP::UserAgent;"
;
my
$lwp
=
$@
?
0
:
1
;
$ENV
{
'PATH'
}
=
$envpath
;
if
((
@ARGV
!=
1
)
||
(
$ARGV
[
0
]
!~
/^https?:/
))
{
print
"Usage: $0 <URL to this Bugzilla installation>\n"
;
...
...
whine.pl
View file @
7f446ae8
...
...
@@ -29,6 +29,7 @@ use strict;
use
lib
"."
;
require
"globals.pl"
;
use
Bugzilla
;
use
Bugzilla::
Config
qw(:DEFAULT $datadir)
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Search
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment