Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -75,10 +75,14 @@ class _pagebuilderoembed extends \IPS\Widget\StaticCache implements \IPS\Widget\
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
if ( isset( $this->configuration['video_url'] ) AND $embed = \IPS\Text\Parser::embeddableMedia( \IPS\Http\Url::external( $this->configuration['video_url'] ) ) )
|
||||
try
|
||||
{
|
||||
return $this->output( $embed );
|
||||
if ( isset( $this->configuration['video_url'] ) AND $embed = \IPS\Text\Parser::embeddableMedia( \IPS\Http\Url::external( $this->configuration['video_url'] ) ) )
|
||||
{
|
||||
return $this->output( $embed );
|
||||
}
|
||||
}
|
||||
catch( \UnexpectedValueException $e ){}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user