index 2d7a8fcee942b7cdbb69f29ba706acf9c9782ab8..310aae104a2e7463a0dcce63e07d628c642bd8b8 100644 (file)
/* Bail out, if we've nothing to do... */
if ($ocname == ""){
print_red(sprintf(_("Autocreation of subtree failed. No objectClass found for attribute '%s'."), $type));
- echo $_SESSION['errors'];
- exit;
+ display_error_page();
}
/* Assemble_entry */
break;
default:
print_red(sprintf(_("Autocreation of type '%s' is currently not supported. Please report to the GOsa team."), $type));
- echo $_SESSION['errors'];
- exit;
+ display_error_page();
}
}
function log($string)
{
- if (isset($_SESSION['config'])){
- $cfg= $_SESSION['config'];
+ if (session::is_set('config')){
+ $cfg = session::get('config');
if (isset($cfg->current['LDAPSTATS']) && preg_match('/true/i', $cfg->current['LDAPSTATS'])){
syslog (LOG_INFO, $string);
}