1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

urlPrefix experiment

This commit is contained in:
Cameron
2013-05-02 14:20:19 -07:00
parent e4d77a031a
commit 5fcc29bd2e

View File

@@ -109,7 +109,7 @@ class xmlClass
private $stringTags = false;
private $urlPrefix = false;
/**
* Add root element to the result array
@@ -284,6 +284,19 @@ class xmlClass
return $this;
}
/**
* Set urlPrefix
*
* @param array $filter
* @return xmlClass
*/
public function setUrlPrefix($url)
{
$this->urlPrefix = $url;
return $this;
}
public function setFeedUrl($feed)
@@ -319,6 +332,12 @@ class xmlClass
// ... and there shouldn't be unprintable characters in the URL anyway
}
if($this->urlPrefix !== false)
{
$address = $this->urlPrefix.$address;
}
// ... and there shouldn't be unprintable characters in the URL anyway
if (function_exists('file_get_contents') && ini_get('allow_url_fopen'))
{