Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
300
Merge Requests
300
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
a7845659
Commit
a7845659
authored
May 08, 2007
by
Gábor Hojtsy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#99011
: FILE_WRITEABLE typofix to FILE_WRITABLE, patch by myself
parent
d7681a35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
install.php
install.php
+5
-5
No files found.
install.php
View file @
a7845659
...
...
@@ -156,23 +156,23 @@ function install_change_settings($profile = 'default', $install_locale = '') {
// The existing database settings are not working, so we need write access
// to settings.php to change them.
$writ
e
able
=
FALSE
;
$writable
=
FALSE
;
$file
=
$conf_path
;
// Verify the directory exists.
if
(
drupal_verify_install_file
(
$conf_path
,
FILE_EXIST
,
'dir'
))
{
// Check to see if a settings.php already exists
if
(
drupal_verify_install_file
(
$settings_file
,
FILE_EXIST
))
{
// If it does, make sure it is writ
e
able
$writ
eable
=
drupal_verify_install_file
(
$settings_file
,
FILE_READABLE
|
FILE_WRITE
ABLE
);
// If it does, make sure it is writable
$writ
able
=
drupal_verify_install_file
(
$settings_file
,
FILE_READABLE
|
FILE_WRIT
ABLE
);
$file
=
$settings_file
;
}
else
{
// If not, makes sure the directory is.
$writ
eable
=
drupal_verify_install_file
(
$conf_path
,
FILE_READABLE
|
FILE_WRITE
ABLE
,
'dir'
);
$writ
able
=
drupal_verify_install_file
(
$conf_path
,
FILE_READABLE
|
FILE_WRIT
ABLE
,
'dir'
);
}
}
if
(
!
$writ
e
able
)
{
if
(
!
$writable
)
{
drupal_set_message
(
st
(
'The @drupal installer requires write permissions to %file during the installation process.'
,
array
(
'@drupal'
=>
drupal_install_profile_name
(),
'%file'
=>
$file
)),
'error'
);
drupal_set_title
(
st
(
'Drupal database setup'
));
...
...
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