Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
b0e2ee56
Commit
b0e2ee56
authored
13 years ago
by
Chris Sangwin
Browse files
Options
Downloads
Patches
Plain Diff
Code tidying
parent
feacdcfb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
backup/moodle2/backup_qtype_stack_plugin.class.php
+1
-1
1 addition, 1 deletion
backup/moodle2/backup_qtype_stack_plugin.class.php
db/upgrade.php
+28
-32
28 additions, 32 deletions
db/upgrade.php
edit_stack_form.php
+13
-13
13 additions, 13 deletions
edit_stack_form.php
with
42 additions
and
46 deletions
backup/moodle2/backup_qtype_stack_plugin.class.php
+
1
−
1
View file @
b0e2ee56
This diff is collapsed.
Click to expand it.
db/upgrade.php
+
28
−
32
View file @
b0e2ee56
...
@@ -22,10 +22,8 @@
...
@@ -22,10 +22,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
defined
(
'MOODLE_INTERNAL'
)
||
die
();
/**
/**
* Upgrade code for the Stack question type.
* Upgrade code for the Stack question type.
* @param int $oldversion the version we are upgrading from.
* @param int $oldversion the version we are upgrading from.
...
@@ -420,7 +418,6 @@ function xmldb_qtype_stack_upgrade($oldversion) {
...
@@ -420,7 +418,6 @@ function xmldb_qtype_stack_upgrade($oldversion) {
}
}
if
(
$oldversion
<
2012061500
)
{
if
(
$oldversion
<
2012061500
)
{
// Define field questionnote to be dropped from qtype_stack
// Define field questionnote to be dropped from qtype_stack
$table
=
new
xmldb_table
(
'qtype_stack'
);
$table
=
new
xmldb_table
(
'qtype_stack'
);
$field
=
new
xmldb_field
(
'markmode'
);
$field
=
new
xmldb_field
(
'markmode'
);
...
@@ -435,7 +432,6 @@ function xmldb_qtype_stack_upgrade($oldversion) {
...
@@ -435,7 +432,6 @@ function xmldb_qtype_stack_upgrade($oldversion) {
}
}
if
(
$oldversion
<
2012061501
)
{
if
(
$oldversion
<
2012061501
)
{
// Changing type of field truepenalty on table qtype_stack_prt_nodes to number
// Changing type of field truepenalty on table qtype_stack_prt_nodes to number
$table
=
new
xmldb_table
(
'qtype_stack_prt_nodes'
);
$table
=
new
xmldb_table
(
'qtype_stack_prt_nodes'
);
$field
=
new
xmldb_field
(
'truepenalty'
,
XMLDB_TYPE_NUMBER
,
'12, 7'
,
null
,
null
,
null
,
null
,
'truescore'
);
$field
=
new
xmldb_field
(
'truepenalty'
,
XMLDB_TYPE_NUMBER
,
'12, 7'
,
null
,
null
,
null
,
null
,
'truescore'
);
...
...
This diff is collapsed.
Click to expand it.
edit_stack_form.php
+
13
−
13
View file @
b0e2ee56
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment