mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Added lastErrorMessage() method to XML class.
This commit is contained in:
@@ -864,7 +864,7 @@ class lancheck
|
|||||||
|
|
||||||
$languages = array();
|
$languages = array();
|
||||||
|
|
||||||
if($rawData = $xml -> loadXMLfile($feed, TRUE))
|
if($rawData = $xml -> loadXMLfile($feed, true))
|
||||||
{
|
{
|
||||||
|
|
||||||
if(empty($rawData['language']))
|
if(empty($rawData['language']))
|
||||||
@@ -894,6 +894,10 @@ class lancheck
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
e107::getDebug()->log("Language Pack Feed Failed: ".$xml->getLastErrorMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $languages;
|
return $languages;
|
||||||
|
@@ -441,7 +441,7 @@ class xmlClass
|
|||||||
{
|
{
|
||||||
$_file = e107::getFile();
|
$_file = e107::getFile();
|
||||||
$this->xmlFileContents = $_file->getRemoteContent($address, array('timeout' => $timeout, 'post' => $postData));
|
$this->xmlFileContents = $_file->getRemoteContent($address, array('timeout' => $timeout, 'post' => $postData));
|
||||||
$this->error = $_file->getErrorMessage();
|
$this->errors = $_file->getErrorMessage();
|
||||||
|
|
||||||
return $this->xmlFileContents;
|
return $this->xmlFileContents;
|
||||||
|
|
||||||
@@ -1230,7 +1230,10 @@ class xmlClass
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public function getLastErrorMessage()
|
||||||
|
{
|
||||||
|
return $this->errors;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user