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
c1dcf3b1
Commit
c1dcf3b1
authored
Feb 25, 2011
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 621925: Avoid 'used only once' warning when loading extensions
r=mkanat, a=mkanat
parent
90062dd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Util.pm
Bugzilla/Install/Util.pm
+7
-1
No files found.
Bugzilla/Install/Util.pm
View file @
c1dcf3b1
...
...
@@ -222,8 +222,14 @@ sub extension_package_directory {
my
(
$invocant
,
$file
)
=
@_
;
my
$class
=
ref
(
$invocant
)
||
$invocant
;
# $file is set on the first invocation, store the value in the extension's
# package for retrieval on subsequent calls
my
$var
;
{
no
strict
'refs'
;
$var
=
\
$
{
"${class}::EXTENSION_PACKAGE_DIR"
};
}
{
no
warnings
'once'
;
no
strict
'refs'
;
$var
=
\
$
{
"${class}::EXTENSION_PACKAGE_DIR"
};
}
if
(
$file
)
{
$$var
=
dirname
(
$file
);
}
...
...
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