oEmbed: Switched off errorreporting while trying to fetch oembed code so

it won't disturb output when service is down. Removed pixplz provider as
service is down.
This commit is contained in:
Grischa Brockhaus 2012-08-28 11:49:49 +02:00
parent 906515cff2
commit d7336748d9
5 changed files with 11 additions and 9 deletions

View file

@ -1,3 +1,9 @@
Version 1.09 (brockhaus)
-----------------------
* Switched off errorreporting while trying to fetch oembed code
so it won't disturb output when service is down.
* Removed pixplz provider as service is down.
Version 1.07 (brockhaus)
-----------------------
* New: dotsub.com video service. podomatic podcast service

View file

@ -79,7 +79,10 @@ class OEmbedProvider extends EmbedProvider{
$xml = null;
if (!$this->onlyJson) {
try {
// Switch off warnings
$oldErrrorLevel = error_reporting(0);
$xml=simplexml_load_string($this->provideXML($url));
error_reporting($oldErrrorLevel);
} catch (Exception $e) {
// something went wrong.
$xml = null;

View file

@ -1,6 +1,6 @@
<?php
class ProviderList {
function ul_providernames($with_url=false) {
static function ul_providernames($with_url=false) {
$provider_names = array();
$xml = simplexml_load_file(PLUGIN_OEMBED_PROVIDER_XML_FILE);// PROVIDER_XML comes from config.php
foreach($xml->provider as $provider){

View file

@ -102,13 +102,6 @@
<endpoint>http://www.dailymotion.com/services/oembed</endpoint>
</provider>
<provider>
<name>PicPlz</name>
<jsononly/>
<url>http://*.picplz.com/*</url>
<endpoint>http://picplz.com/oembed</endpoint>
</provider>
<provider>
<name>SoundCloud</name>
<url>http://*.soundcloud.com/*</url>

View file

@ -30,7 +30,7 @@ class serendipity_event_oembed extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_OEMBED_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Grischa Brockhaus');
$propbag->add('version', '1.08');
$propbag->add('version', '1.09');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',