Commit 4b61ca66 authored by mrsad's avatar mrsad Committed by olstjos

Issue #2872941 by mrsad: Error loading media_oembed handler class from media_internet

parent 33415a3c
......@@ -111,6 +111,7 @@ function media_internet_get_providers() {
function media_internet_get_provider($embed_string) {
foreach (media_internet_get_providers() as $class_name => $nothing) {
module_load_include('inc', $nothing['module'], 'includes/' . $class_name);
$p = new $class_name($embed_string);
if ($p->claim($embed_string)) {
return $p;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment