Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
b5d135de
Commit
b5d135de
authored
Jan 10, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: fix more apply vs. translation foo #431
parent
ae3ffb28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
guiconfig.inc
src/www/guiconfig.inc
+16
-7
No files found.
src/www/guiconfig.inc
View file @
b5d135de
...
...
@@ -216,15 +216,24 @@ EOFnp;
function
print_info_box_apply
(
$msg
)
{
$value
=
gettext
(
'Apply changes'
);
$iface
=
!
empty
(
$_POST
[
'if'
])
?
$_POST
[
'if'
]
:
(
!
empty
(
$_GET
[
'if'
])
?
$_GET
[
'if'
]
:
''
);
$label
=
gettext
(
'Apply changes'
);
$value
=
'Apply changes'
;
$name
=
'apply'
;
$savebutton
=
'<form action="'
.
$_SERVER
[
'REQUEST_URI'
]
.
'" method="post">'
;
$savebutton
.=
'<input name="'
.
$name
.
'" type="submit" class="btn btn-primary pull-right" id="'
.
$name
.
'" value="'
.
$value
.
'" />'
;
if
(
!
empty
(
$_POST
[
'if'
]))
{
$savebutton
.=
'<input type="hidden" name="if" value="'
.
htmlspecialchars
(
$_POST
[
'if'
])
.
'" />'
;
}
elseif
(
!
empty
(
$_GET
[
'if'
]))
{
$savebutton
.=
'<input type="hidden" name="if" value="'
.
htmlspecialchars
(
$_GET
[
'if'
])
.
'" />'
;
$savebutton
=
sprintf
(
'<form action="'
.
$_SERVER
[
'REQUEST_URI'
]
.
'" method="post">'
,
$_SERVER
[
'REQUEST_URI'
]);
$savebutton
.=
sprintf
(
'<button type="submit" name="%s" id="%s" class="btn btn-primary pull-right" value="%s">%s</button>'
,
$name
,
$name
,
$value
,
$label
);
if
(
!
empty
(
$iface
))
{
$savebutton
.=
sprintf
(
'<input type="hidden" name="if" value="%s"/>'
,
htmlspecialchars
(
$iface
)
);
}
$savebutton
.=
'</form>'
;
...
...
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