Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
provision
Commits
e714d222
Commit
e714d222
authored
Oct 28, 2008
by
anarcat
Committed by
anarcat
Oct 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix last patch: we forgot $key
parent
33893ea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platform/provision_drupal.module
platform/provision_drupal.module
+2
-2
No files found.
platform/provision_drupal.module
View file @
e714d222
...
...
@@ -394,7 +394,7 @@ function _provision_find_profiles() {
$languages
[
'en'
]
=
1
;
// Find languages available
$files
=
array_keys
(
file_scan_directory
(
'./profiles/'
.
$
key
,
'\.po$'
,
array
(
'.'
,
'..'
,
'CVS'
),
0
,
FALSE
,
'filepath'
));
$files
=
array_keys
(
file_scan_directory
(
'./profiles/'
.
$
name
,
'\.po$'
,
array
(
'.'
,
'..'
,
'CVS'
),
0
,
FALSE
,
'filepath'
));
foreach
(
$files
as
$file
)
{
if
(
preg_match
(
'!(/|\.)([^\./]+)\.po$!'
,
$file
,
$langcode
))
{
$languages
[
$langcode
[
2
]]
=
1
;
// use the language name as an index to weed out duplicates
...
...
@@ -402,7 +402,7 @@ function _provision_find_profiles() {
}
$profile
->
info
[
'languages'
]
=
array_keys
(
$languages
);
$return
[
$
key
]
=
$profile
;
$return
[
$
name
]
=
$profile
;
provision_log
(
'notice'
,
t
(
'found install profile %name'
,
array
(
'%name'
=>
$name
)));
}
return
$return
;
...
...
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