Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
463cc6c2
Commit
463cc6c2
authored
Sep 06, 2014
by
Grazyna Jaworska
Browse files
Use is_dir() instead of file_exists() when checking directory existence.
parent
13cac820
Changes
1
Hide whitespace changes
Inline
Side-by-side
migrate.hostmaster.inc
View file @
463cc6c2
...
...
@@ -29,7 +29,7 @@ We are making the following assumptions:
if
(
!
file_exists
(
$platform
))
{
$dir
=
realpath
(
dirname
(
$platform
));
if
(
file_exists
(
$dir
))
{
if
(
is_dir
(
$dir
))
{
$platform
=
$dir
.
'/'
.
basename
(
$platform
);
drush_log
(
"changed relative platform path to absolute"
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment