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
2442c6bd
Commit
2442c6bd
authored
Mar 27, 2008
by
Nigel McNie
Browse files
Allow files with extensions that are not lower case to be embedded in views. Fixes #2020.
parent
7b5df11b
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/blocktype/internalmedia/lib.php
View file @
2442c6bd
...
@@ -66,7 +66,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
...
@@ -66,7 +66,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
$artefact
=
artefact_instance_from_id
(
$configdata
[
'artefactid'
]);
$artefact
=
artefact_instance_from_id
(
$configdata
[
'artefactid'
]);
$width
=
(
!
empty
(
$configdata
[
'width'
]))
?
hsc
(
$configdata
[
'width'
])
:
'300'
;
$width
=
(
!
empty
(
$configdata
[
'width'
]))
?
hsc
(
$configdata
[
'width'
])
:
'300'
;
$height
=
(
!
empty
(
$configdata
[
'height'
]))
?
hsc
(
$configdata
[
'height'
])
:
'300'
;
$height
=
(
!
empty
(
$configdata
[
'height'
]))
?
hsc
(
$configdata
[
'height'
])
:
'300'
;
$extn
=
$artefact
->
get
(
'oldextension'
);
$extn
=
strtolower
(
$artefact
->
get
(
'oldextension'
)
)
;
if
(
!
in_array
(
$extn
,
self
::
get_allowed_extensions
()))
{
if
(
!
in_array
(
$extn
,
self
::
get_allowed_extensions
()))
{
return
get_string
(
'typeremoved'
,
'blocktype.file/internalmedia'
);
return
get_string
(
'typeremoved'
,
'blocktype.file/internalmedia'
);
}
}
...
...
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