Update of /cvsroot/php-blog/additional_plugins/serendipity_event_oembed/oembed
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21833/serendipity_event_oembed/oembed
Modified Files:
ProviderList.php ProviderManager.class.php
Log Message:
gitclone.sh autocommit
Index: ProviderManager.class.php
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/serendipity_event_oembed/oembed/ProviderManager.class.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ProviderManager.class.php 3 Feb 2012 01:33:01 -0000 1.2
+++ ProviderManager.class.php 10 Apr 2017 20:35:21 -0000 1.3
@@ -6,7 +6,7 @@
private function __construct($maxwidth=null, $maxheight=null, $config = array()){
$this->providers=array();
$this->config = $config;
- $xml = simplexml_load_file(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->class) && isset($provider->endpoint)){
$onlyJson = isset($provider->jsononly);
Index: ProviderList.php
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/serendipity_event_oembed/oembed/ProviderList.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ProviderList.php 29 Aug 2012 00:32:37 -0000 1.3
+++ ProviderList.php 10 Apr 2017 20:35:21 -0000 1.4
@@ -2,7 +2,7 @@
class ProviderList {
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
+ $xml = simplexml_load_file(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;
|