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
72212244
Commit
72212244
authored
Oct 28, 2007
by
Nigel McNie
Browse files
Slightly briefer way to set the default for the artefactchooser element.
parent
2607fcb6
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/blocktype/blogpost/lib.php
View file @
72212244
...
@@ -86,9 +86,8 @@ class PluginBlocktypeBlogpost extends PluginBlocktype {
...
@@ -86,9 +86,8 @@ class PluginBlocktypeBlogpost extends PluginBlocktype {
public
static
function
instance_config_form
(
$instance
)
{
public
static
function
instance_config_form
(
$instance
)
{
$configdata
=
$instance
->
get
(
'configdata'
);
$configdata
=
$instance
->
get
(
'configdata'
);
$default
=
(
isset
(
$configdata
[
'artefactid'
]))
?
$configdata
[
'artefactid'
]
:
null
;
return
array
(
return
array
(
self
::
artefactchooser_element
(
$defa
ul
t
),
self
::
artefactchooser_element
(
(
isset
(
$configdata
[
'artefactid'
]))
?
$configdata
[
'artefactid'
]
:
n
ul
l
),
);
);
}
}
...
...
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