Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
c9e9c0e1
Commit
c9e9c0e1
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Convert file_check_directory().
parent
9148b2cb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
includes/FeedsBatch.inc
+1
-1
1 addition, 1 deletion
includes/FeedsBatch.inc
plugins/FeedsFileFetcher.inc
+1
-1
1 addition, 1 deletion
plugins/FeedsFileFetcher.inc
plugins/FeedsSimplePieParser.inc
+1
-1
1 addition, 1 deletion
plugins/FeedsSimplePieParser.inc
with
3 additions
and
3 deletions
includes/FeedsBatch.inc
+
1
−
1
View file @
c9e9c0e1
...
...
@@ -190,7 +190,7 @@ class FeedsImportBatch extends FeedsBatch {
public
function
getFilePath
()
{
if
(
!
isset
(
$this
->
file_path
))
{
$dir
=
file_directory_path
()
.
'/feeds'
;
if
(
!
file_
check
_directory
(
$dir
,
TRUE
))
{
if
(
!
file_
prepare
_directory
(
$dir
,
FILE_CREATE_DIRECTORY
|
FILE_MODIFY_PERMISSIONS
))
{
throw
new
Exception
(
t
(
'Feeds directory either cannot be created or is not writable.'
));
}
$dest
=
file_destination
(
$dir
.
'/'
.
get_class
(
$this
)
.
'_'
.
drupal_get_token
(
$this
->
url
)
.
'_'
.
time
(),
FILE_EXISTS_RENAME
);
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsFileFetcher.inc
+
1
−
1
View file @
c9e9c0e1
...
...
@@ -88,7 +88,7 @@ class FeedsFileFetcher extends FeedsFetcher {
*/
public
function
sourceFormValidate
(
&
$values
)
{
$feed_dir
=
file_directory_path
()
.
'/feeds'
;
file_
check
_directory
(
$
feed_dir
,
TRUE
);
file_
prepare
_directory
(
$
dir
,
FILE_CREATE_DIRECTORY
|
FILE_MODIFY_PERMISSIONS
);
// If there is a file uploaded, save it, otherwise validate input on
// file.
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsSimplePieParser.inc
+
1
−
1
View file @
c9e9c0e1
...
...
@@ -212,7 +212,7 @@ class FeedsSimplePieParser extends FeedsParser {
*/
protected
function
cacheDirectory
()
{
$directory
=
file_directory_path
()
.
'/simplepie'
;
file_
check
_directory
(
$dir
ectory
,
TRUE
);
file_
prepare
_directory
(
$dir
,
FILE_CREATE_DIRECTORY
|
FILE_MODIFY_PERMISSIONS
);
return
$directory
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment