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
7c1d3b1b
Commit
7c1d3b1b
authored
May 12, 2016
by
Kenneth Lorber
Committed by
Dylan Hardison
May 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1269160 - Localconfig.pm: LOCALCONFIG_VARS docs and functionality loss
r=dylan
parent
67ad01e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Localconfig.pm
Bugzilla/Install/Localconfig.pm
+13
-8
No files found.
Bugzilla/Install/Localconfig.pm
View file @
7c1d3b1b
...
...
@@ -297,11 +297,15 @@ sub update_localconfig {
open
(
my
$fh
,
">:utf8"
,
$filename
)
or
die
"$filename: $!"
;
foreach
my
$var
(
LOCALCONFIG_VARS
)
{
my
$name
=
$var
->
{
name
};
my
$desc
=
install_string
(
"localconfig_$name"
,
{
root
=>
ROOT_USER
});
chomp
(
$desc
);
# Make the description into a comment.
$desc
=~
s/^/# /mg
;
print
$fh
$desc
,
"\n"
,
my
$desc
=
$var
->
{
desc
};
if
(
!
length
$desc
){
$desc
=
install_string
(
"localconfig_$name"
,
{
root
=>
ROOT_USER
});
chomp
(
$desc
);
# Make the description into a comment.
$desc
=~
s/^/# /mg
;
$desc
.=
"\n"
;
}
print
$fh
$desc
,
Data::
Dumper
->
Dump
([
$localconfig
->
{
$name
}],
[
"*$name"
]),
"\n"
;
}
...
...
@@ -347,15 +351,16 @@ to access localconfig variables.
=item C<LOCALCONFIG_VARS>
An array of hashrefs. These hashrefs contain three keys:
An array of hashrefs. These hashrefs contain t
wo or t
hree keys:
name - The name of the variable.
default - The default value for the variable. Should always be
something that can fit in a scalar.
desc -
A
dditional text to put in localconfig before the variable
desc -
If present, a
dditional text to put in localconfig before the variable
definition. Must end in a newline. Each line should start
with "#" unless you have some REALLY good reason not
to do that.
to do that. If not present, the description is taken from
F<template/en/default/setup/strings.txt>.
=item C<OLD_LOCALCONFIG_VARS>
...
...
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