1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +02:00

Preparations for plugin-pref export support.

This commit is contained in:
Cameron
2016-12-24 09:34:00 -08:00
parent 659be58113
commit cbc6beb789
2 changed files with 104 additions and 17 deletions

View File

@@ -872,9 +872,9 @@ class xmlClass
* @param boolean $debug [optional]
* @return string text / file for download
*/
public function e107Export($xmlprefs, $tables, $debug = FALSE)
public function e107Export($xmlprefs, $tables, $mode = false)
{
error_reporting(0);
// error_reporting(0);
$e107info = array();
require_once(e_ADMIN."ver.php");
@@ -904,7 +904,7 @@ class xmlClass
{
continue;
}
elseif($debug == true)
elseif($mode === 'debug')
{
echo "<div>Original/Modiied <b>".$key."</b>";
var_dump($default[$key],$val);
@@ -958,7 +958,13 @@ class xmlClass
$text .= "</e107Export>";
if($debug==TRUE)
if($mode === 'return')
{
return $text;
}
if($mode === 'debug')
{
echo "<pre>".htmlentities($text)."</pre>";
return TRUE;