Skip to content
GitLab
Menu
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
72f292ce
Commit
72f292ce
authored
Feb 25, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 25, 2014
Browse files
Merge "Setting general pages to site default on upgrade (Bug #1283839)"
parents
7203648b
84981bcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
72f292ce
...
...
@@ -3052,6 +3052,11 @@ function xmldb_core_upgrade($oldversion=0) {
$page
->
content
=
$sitecontentarray
[
$name
];
$page
->
institution
=
$institution
->
name
;
insert_record
(
'site_content'
,
$page
);
$pageconfig
=
new
stdClass
();
$pageconfig
->
institution
=
$institution
->
name
;
$pageconfig
->
field
=
'sitepages_'
.
$name
;
$pageconfig
->
value
=
'mahara'
;
insert_record
(
'institution_config'
,
$pageconfig
);
}
}
}
...
...
Write
Preview
Supports
Markdown
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