Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f3b78fbf
Commit
f3b78fbf
authored
Jan 10, 2014
by
Dries
Browse files
Issue
#2171015
by webchick: fixed some language/documentation issues.
parent
0483bec2
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
f3b78fbf
...
...
@@ -2429,8 +2429,8 @@ function language_list($flags = Language::STATE_CONFIGURABLE) {
}
Language
::
sort
(
$languages
);
}
// If the language module is enable but the configuration has not been
// written yet
the
returning an empty language list will cause errors. For
// If the language module is enable
d
but the configuration has not been
// written yet
,
returning an empty language list will cause errors. For
// example the cache clear in search_module_preinstall().
if
(
empty
(
$languages
))
{
// No language module, so use the default language only.
...
...
core/modules/language/lib/Drupal/language/Tests/LanguageListModuleInstallTest.php
View file @
f3b78fbf
...
...
@@ -33,8 +33,8 @@ public static function getInfo() {
* Tests enabling Language.
*/
function
testModuleInstallLanguageList
()
{
// Since language_list uses static caches we need to do this b
e
enabling
// the module using
a
the UI.
// Since language_list uses static caches we need to do this b
y
enabling
// the module using the UI.
$admin_user
=
$this
->
drupalCreateUser
(
array
(
'access administration pages'
,
'administer modules'
));
$this
->
drupalLogin
(
$admin_user
);
$edit
=
array
();
...
...
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