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
aac05b7e
Commit
aac05b7e
authored
May 11, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inc: gettext() woes
parent
d941a2eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+4
-4
No files found.
src/etc/inc/pfsense-utils.inc
View file @
aac05b7e
...
@@ -1543,7 +1543,7 @@ function update_alias_url_data()
...
@@ -1543,7 +1543,7 @@ function update_alias_url_data()
if
(
file_exists
(
"
{
$temp_filename
}
/aliases"
))
{
if
(
file_exists
(
"
{
$temp_filename
}
/aliases"
))
{
$fd
=
@
fopen
(
"
{
$temp_filename
}
/aliases"
,
'r'
);
$fd
=
@
fopen
(
"
{
$temp_filename
}
/aliases"
,
'r'
);
if
(
!
$fd
)
{
if
(
!
$fd
)
{
log_error
(
gettext
(
"Could not process aliases from alias:
{
$alias_url
}
"
));
log_error
(
sprintf
(
_
(
'Could not process aliases from alias: %s'
),
$alias_url
));
continue
;
continue
;
}
}
/* NOTE: fgetss() is not a typo RTFM before being smart */
/* NOTE: fgetss() is not a typo RTFM before being smart */
...
@@ -1587,13 +1587,13 @@ function process_alias_unzip($temp_filename) {
...
@@ -1587,13 +1587,13 @@ function process_alias_unzip($temp_filename) {
/* foreach through all extracted files and build up aliases file */
/* foreach through all extracted files and build up aliases file */
$fd
=
@
fopen
(
"
{
$temp_filename
}
/aliases"
,
"w"
);
$fd
=
@
fopen
(
"
{
$temp_filename
}
/aliases"
,
"w"
);
if
(
!
$fd
)
{
if
(
!
$fd
)
{
log_error
(
gettext
(
"Could not open
{
$temp_filename
}
/aliases for writing!"
));
log_error
(
sprintf
(
_
(
'Could not open %s/aliases for writing!'
),
$temp_filename
));
return
false
;
return
false
;
}
}
foreach
(
$files_to_process
as
$f2p
)
{
foreach
(
$files_to_process
as
$f2p
)
{
$tmpfd
=
@
fopen
(
$f2p
,
'r'
);
$tmpfd
=
@
fopen
(
$f2p
,
'r'
);
if
(
!
$tmpfd
)
{
if
(
!
$tmpfd
)
{
log_error
(
gettext
(
"The following file could not be read
{
$f2p
}
from
{
$temp_filename
}
"
));
log_error
(
sprintf
(
_
(
'The following file could not be read %s from %s'
),
$f2p
,
$temp_filename
));
continue
;
continue
;
}
}
while
((
$tmpbuf
=
fread
(
$tmpfd
,
65536
))
!==
FALSE
)
while
((
$tmpbuf
=
fread
(
$tmpfd
,
65536
))
!==
FALSE
)
...
@@ -1619,7 +1619,7 @@ function process_alias_tgz($temp_filename) {
...
@@ -1619,7 +1619,7 @@ function process_alias_tgz($temp_filename) {
/* foreach through all extracted files and build up aliases file */
/* foreach through all extracted files and build up aliases file */
$fd
=
@
fopen
(
"
{
$temp_filename
}
/aliases"
,
"w"
);
$fd
=
@
fopen
(
"
{
$temp_filename
}
/aliases"
,
"w"
);
if
(
!
$fd
)
{
if
(
!
$fd
)
{
log_error
(
gettext
(
"Could not open
{
$temp_filename
}
/aliases for writing!"
));
log_error
(
sprintf
(
_
(
'Could not open %s/aliases for writing!'
),
$temp_filename
));
return
false
;
return
false
;
}
}
foreach
(
$files_to_process
as
$f2p
)
{
foreach
(
$files_to_process
as
$f2p
)
{
...
...
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