Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2d13b530
Commit
2d13b530
authored
Aug 05, 2001
by
Dries
Browse files
- added fclose()
parent
aeb17a8f
Changes
4
Hide whitespace changes
Inline
Side-by-side
modules/aggregator.module
View file @
2d13b530
...
...
@@ -144,6 +144,7 @@ function import_refresh($feed) {
while
(
!
feof
(
$fp
))
{
$data
.
=
fgets
(
$fp
,
128
);
}
fclose
(
$fp
);
// initialize the translation table:
$tt
=
array_flip
(
get_html_translation_table
(
HTML_ENTITIES
));
...
...
@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while
(
!
feof
(
$fp
))
{
$data
.
=
fgets
(
$fp
,
128
);
}
fclose
(
$fp
);
// initialize the translation table:
$tt
=
array_flip
(
get_html_translation_table
(
HTML_ENTITIES
));
...
...
modules/aggregator/aggregator.module
View file @
2d13b530
...
...
@@ -144,6 +144,7 @@ function import_refresh($feed) {
while
(
!
feof
(
$fp
))
{
$data
.
=
fgets
(
$fp
,
128
);
}
fclose
(
$fp
);
// initialize the translation table:
$tt
=
array_flip
(
get_html_translation_table
(
HTML_ENTITIES
));
...
...
@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while
(
!
feof
(
$fp
))
{
$data
.
=
fgets
(
$fp
,
128
);
}
fclose
(
$fp
);
// initialize the translation table:
$tt
=
array_flip
(
get_html_translation_table
(
HTML_ENTITIES
));
...
...
modules/cloud.module
View file @
2d13b530
...
...
@@ -58,6 +58,8 @@ function cloud_update($site) {
if
(
abs
(
$site
[
size
]
-
strlen
(
$data
))
>
50
)
{
db_query
(
"UPDATE site SET size = '"
.
strlen
(
$data
)
.
"', timestamp = '"
.
time
()
.
"' WHERE link = '"
.
check_input
(
$site
[
link
])
.
"'"
);
}
fclose
(
$fp
);
}
else
{
watchdog
(
"warning"
,
"cloud: failed to syndicate from '
$site[name]
'"
.
(
$errstr
?
":
$errstr
"
:
""
));
...
...
modules/import.module
View file @
2d13b530
...
...
@@ -144,6 +144,7 @@ function import_refresh($feed) {
while
(
!
feof
(
$fp
))
{
$data
.
=
fgets
(
$fp
,
128
);
}
fclose
(
$fp
);
// initialize the translation table:
$tt
=
array_flip
(
get_html_translation_table
(
HTML_ENTITIES
));
...
...
@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while
(
!
feof
(
$fp
))
{
$data
.
=
fgets
(
$fp
,
128
);
}
fclose
(
$fp
);
// initialize the translation table:
$tt
=
array_flip
(
get_html_translation_table
(
HTML_ENTITIES
));
...
...
Write
Preview
Supports
Markdown
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