';
foreach ($issues as $file => $issue) {
$file = preg_replace('/.*\//', '', (string) $file);
echo '
' . $file . '
';
if (is_array($issue)) {
foreach ($issue as $i) {
echo "$i
";
}
} else {
echo "$issue
";
}
echo "
";
}
echo '
';
}
echo "';
foreach ($issues as $file => $issue) {
$file = preg_replace('/.*\//', '', (string) $file);
$message .= '
' . $file . '
';
if (is_array($issue)) {
foreach ($issue as $i) {
$message .= "$i
";
}
} else {
$message .= "$issue
";
}
$message .= "
";
}
$message .= '
';
}
return $message;
}
/**
* Lock config settings
*/
public function lockConfig()
{
if (empty($this->config_hash)) {
$this->config_hash = md5(serialize($GLOBALS['sugar_config']));
}
}
/**
* Check if config was modified. Return
* @param string $file
* @return array Errors if something wrong, false if no problems
*/
public function checkConfig($file)
{
$config_hash_after = md5(serialize($GLOBALS['sugar_config']));
if ($config_hash_after != $this->config_hash) {
$this->issues['file'][$file] = array(translate('ML_CONFIG_OVERRIDE', 'Administration'));
return $this->issues;
}
return false;
}
}
/**
* Load manifest file
* Outside of the class to isolate the context
* @param string $manifest_file
* @return array
*/
function MSLoadManifest($manifest_file)
{
include($manifest_file);
return array($manifest, $installdefs);
}