Fixed wrong API Endpoint for Twitter.
This commit is contained in:
parent
1ed4a5ecc0
commit
6a27a52bd2
|
@ -1,3 +1,8 @@
|
|||
Version 1.13
|
||||
-----------------------
|
||||
* Fixed wrong API endpoint for Twitter
|
||||
* Fixed forgotten change to simplexml_load_string in ProviderList.php
|
||||
|
||||
Version 1.12
|
||||
-----------------------
|
||||
* Changed simplexml_load_file to simplexml_load_string to prevent I/O errors
|
||||
|
@ -54,4 +59,4 @@ Version 1.01 (brockhaus)
|
|||
|
||||
Version 1.00 (brockhaus)
|
||||
-----------------------
|
||||
* Initial Release, have fun! :)
|
||||
* Initial Release, have fun! :)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
class ProviderList {
|
||||
static function ul_providernames($with_url=false) {
|
||||
$provider_names = array();
|
||||
$xml = simplexml_load_file(file_get_contents(PLUGIN_OEMBED_PROVIDER_XML_FILE));// PROVIDER_XML comes from config.php
|
||||
$xml = simplexml_load_string(file_get_contents(PLUGIN_OEMBED_PROVIDER_XML_FILE));// PROVIDER_XML comes from config.php
|
||||
foreach($xml->provider as $provider){
|
||||
if (isset($provider->name)) {
|
||||
$pentry = $provider->name;
|
||||
|
@ -16,4 +16,4 @@ class ProviderList {
|
|||
natsort($provider_names);
|
||||
return "<ol><li>" . implode("</li><li>", $provider_names) . "</li></ol>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<provider>
|
||||
<name>Twitter Status</name>
|
||||
<url>https?://*.twitter.com/*/status(es)?/*</url>
|
||||
<endpoint>https://api.twitter.com/1/statuses/oembed.{format}</endpoint>
|
||||
<endpoint>https://publish.twitter.com/oembed</endpoint>
|
||||
</provider>
|
||||
<provider>
|
||||
<url>http://*.vimeo.com/*</url>
|
||||
|
|
|
@ -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.12');
|
||||
$propbag->add('version', '1.13');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'smarty' => '2.6.7',
|
||||
|
@ -261,4 +261,4 @@ class serendipity_event_oembed extends serendipity_event
|
|||
OEmbedDatabase::install($this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue