Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b71458e4
Commit
b71458e4
authored
Jul 28, 2007
by
Nigel McNie
Browse files
Round two of the lang setting fix
parent
354a5122
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
b71458e4
...
...
@@ -266,7 +266,7 @@ function xmldb_core_upgrade($oldversion=0) {
// everything up to here was pre mysql support.
if
(
$oldversion
<
2007062000
)
{
if
(
!
get_record
_array
(
'config'
,
'field'
,
'lang'
))
{
if
(
!
get_record
(
'config'
,
'field'
,
'lang'
))
{
execute_sql
(
"INSERT INTO
{
$prefix
}
config (field, value) VALUES ('lang', (SELECT value FROM
{
$prefix
}
config WHERE field = 'language'))"
);
}
delete_records
(
'config'
,
'field'
,
'language'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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