Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
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
1
Merge Requests
1
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
provision
Commits
9728b79c
Commit
9728b79c
authored
Nov 24, 2008
by
Adrian Rossouw
Committed by
adrian
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errors with language and general site import.
parent
545fb616
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
platform/provision_drupal.module
platform/provision_drupal.module
+0
-1
platform/provision_drupal_import.php
platform/provision_drupal_import.php
+10
-7
No files found.
platform/provision_drupal.module
View file @
9728b79c
...
...
@@ -390,7 +390,6 @@ function _provision_drupal_install_schema($url, $install_profile, $language = 'e
cache_clear_all
();
variable_set
(
'install_profile'
,
$profile
);
// Send initial welcome email
provision_drupal_send_welcome_mail
(
$url
,
$profile
,
$language
,
$client_email
);
}
...
...
platform/provision_drupal_import.php
View file @
9728b79c
<?php
if
(
$argv
[
1
])
{
$_SERVER
[
'HTTP_HOST'
]
=
$argv
[
1
];
$_SERVER
[
'SCRIPT_NAME'
]
=
'/index.php'
;
$command_line
=
true
;
// Fake the necessary HTTP headers that Drupal needs:
$drupal_base_url
=
parse_url
(
sprintf
(
"http://"
.
$argv
[
1
]));
$_SERVER
[
'HTTP_HOST'
]
=
$drupal_base_url
[
'host'
];
$_SERVER
[
'PHP_SELF'
]
=
$drupal_base_url
[
'path'
]
.
'/index.php'
;
$_SERVER
[
'REQUEST_URI'
]
=
$_SERVER
[
'SCRIPT_NAME'
]
=
$_SERVER
[
'PHP_SELF'
];
$_SERVER
[
'REMOTE_ADDR'
]
=
''
;
$_SERVER
[
'REQUEST_METHOD'
]
=
NULL
;
$_SERVER
[
'SERVER_SOFTWARE'
]
=
NULL
;
require_once
(
'includes/bootstrap.inc'
);
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
);
require_once
(
dirname
(
__FILE__
)
.
'/../provision.inc'
);
...
...
@@ -20,10 +26,7 @@ if ($parts = @parse_url($GLOBALS['db_url'])) {
$data
[
'db_name'
]
=
substr
(
$parts
[
'path'
],
1
);
$data
[
'profile'
]
=
variable_get
(
'install_profile'
,
'default'
);
$language
=
variable_get
(
'language_default'
,
(
object
)
array
(
'language'
=>
'en'
,
'name'
=>
'English'
,
'native'
=>
'English'
,
'direction'
=>
0
,
'enabled'
=>
1
,
'plurals'
=>
0
,
'formula'
=>
''
,
'domain'
=>
''
,
'prefix'
=>
''
,
'weight'
=>
0
,
'javascript'
=>
''
));
$language
=
language_default
();
$data
[
'language'
]
=
$language
->
language
;
}
provision_output
(
$argv
[
1
],
$data
);
...
...
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