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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
607ff299
Commit
607ff299
authored
Dec 22, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 186337 - Param lookup should fall back to defaults
r=joel, a=justdave
parent
eec74369
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Config.pm
Bugzilla/Config.pm
+11
-2
No files found.
Bugzilla/Config.pm
View file @
607ff299
...
@@ -121,9 +121,18 @@ sub Param {
...
@@ -121,9 +121,18 @@ sub Param {
my
(
$param
)
=
@_
;
my
(
$param
)
=
@_
;
# By this stage, the param must be in the hash
# By this stage, the param must be in the hash
die
"Can't find param named $param"
unless
(
exists
$param
{
$param
});
die
"Can't find param named $param"
unless
(
exists
$param
s
{
$param
});
return
$param
{
$param
};
# When module startup code runs (which is does even via -c, when using
# |use|), we may try to grab params which don't exist yet. This affects
# tests, so have this as a fallback for the -c case
return
$params
{
$param
}
->
{
default
}
if
(
$
^
C
&&
not
exists
$param
{
$param
});
# If we have a value for the param, return it
return
$param
{
$param
}
if
exists
$param
{
$param
};
# Else error out
die
"No value for param $param"
;
}
}
sub
GetParamList
{
sub
GetParamList
{
...
...
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