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
148fd405
Commit
148fd405
authored
Apr 15, 2010
by
Richard Mansfield
Browse files
Don't ignore delay,admin settings on new plugin activity types
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
7963fb74
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/upgrade.php
View file @
148fd405
...
...
@@ -460,9 +460,11 @@ function upgrade_plugin($upgrade) {
}
$activity
->
plugintype
=
$plugintype
;
$activity
->
pluginname
=
$pluginname
;
$where
=
$activity
;
unset
(
$where
->
admin
);
unset
(
$where
->
delay
);
$where
=
(
object
)
array
(
'name'
=>
$activity
->
name
,
'plugintype'
=>
$plugintype
,
'pluginname'
=>
$pluginname
,
);
// Work around the fact that insert_record cached the columns that
// _were_ in the activity_type table before it was upgraded
global
$INSERTRECORD_NOCACHE
;
...
...
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