Commit e5b0530a authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1599958: Allowing profile page to display embedly correctly



Same fix as the portfolio page

behatnotneeded

Change-Id: I0ba3dda00239fb0c6472360dcac6ccf4952b29fb
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 134cfd9e)
parent 94650e85
......@@ -95,6 +95,9 @@ if (!$restrictedview) {
$javascript = array('paginator', 'lib/pieforms/static/core/pieforms.js');
$blocktype_js = $view->get_all_blocktype_javascript();
$javascript = array_merge($javascript, $blocktype_js['jsfiles']);
if (is_plugin_active('externalvideo')) {
$javascript = array_merge($javascript, array((is_https() ? 'https:' : 'http:') . '//cdn.embedly.com/widgets/platform.js'));
}
$inlinejs = "addLoadEvent( function() {\n" . join("\n", $blocktype_js['initjs']) . "\n});";
// Set up theme
......
Supports Markdown
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