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
da402e16
Commit
da402e16
authored
Oct 31, 2007
by
Nigel McNie
Browse files
Allowed underscores in youtube video urls, they seem to be needed sometimes.
parent
f6d1957c
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/externalvideo/lib.php
View file @
da402e16
...
...
@@ -114,7 +114,7 @@ class PluginBlocktypeExternalvideo extends SystemBlocktype {
private
static
function
make_video_url
(
$url
)
{
static
$embedsources
=
array
(
array
(
'match'
=>
'#.*youtube\.com.*v(=|\/)([a-zA-Z0-9-]+).*#'
,
'match'
=>
'#.*youtube\.com.*v(=|\/)([a-zA-Z0-9
_
-]+).*#'
,
'url'
=>
'http://www.youtube.com/v/$2'
),
array
(
...
...
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