suppress parse warnings
This commit is contained in:
parent
f70a0b0282
commit
6b8bbef6c7
2
boot.php
2
boot.php
|
@ -3,7 +3,7 @@
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
define ( 'BUILD_ID', 1038 );
|
define ( 'BUILD_ID', 1038 );
|
||||||
define ( 'FRIENDIKA_VERSION', '2.10.0905' );
|
define ( 'FRIENDIKA_VERSION', '2.10.0906' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.1' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.1' );
|
||||||
|
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
|
|
|
@ -79,7 +79,10 @@ function oe_get_inner_html( $node ) {
|
||||||
* and replace it with [embed]url[/embed]
|
* and replace it with [embed]url[/embed]
|
||||||
*/
|
*/
|
||||||
function oembed_html2bbcode($text) {
|
function oembed_html2bbcode($text) {
|
||||||
$dom = DOMDocument::loadHTML($text);
|
// If it doesn't parse at all, just return the text.
|
||||||
|
$dom = @DOMDocument::loadHTML($text);
|
||||||
|
if(! $dom)
|
||||||
|
return $text;
|
||||||
$xpath = new DOMXPath($dom);
|
$xpath = new DOMXPath($dom);
|
||||||
$attr = "oembed";
|
$attr = "oembed";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user