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
466e5726
Commit
466e5726
authored
Nov 30, 2008
by
webchick
Browse files
#337794
by Damien Tournoud: Make SimpleTest work under PosthreSQL again.
parent
4f8168c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
466e5726
...
...
@@ -1368,7 +1368,9 @@ function drupal_get_schema($table = NULL, $rebuild = FALSE) {
drupal_alter
(
'schema'
,
$schema
);
}
if
(
drupal_get_bootstrap_phase
()
==
DRUPAL_BOOTSTRAP_FULL
)
{
// If the schema is empty, avoid saving it: some database engines require
// the schema to perform queries, and this could lead to infinite loops.
if
(
!
empty
(
$schema
)
&&
(
drupal_get_bootstrap_phase
()
==
DRUPAL_BOOTSTRAP_FULL
))
{
cache_set
(
'schema'
,
$schema
);
}
}
...
...
includes/common.inc
View file @
466e5726
...
...
@@ -947,7 +947,7 @@ function t($string, $args = array(), $langcode = NULL) {
static
$custom_strings
;
if
(
!
isset
(
$langcode
))
{
$langcode
=
$language
->
language
;
$langcode
=
isset
(
$language
->
language
)
?
$language
->
language
:
'en'
;
}
// First, check for an array of customized strings. If present, use the 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