refactoring

This commit is contained in:
Roland Gruber 2024-01-19 19:39:55 +01:00
parent ff0b56b1eb
commit fd880eddcd
4 changed files with 8 additions and 3 deletions

View file

@ -25,7 +25,7 @@ use LAMException;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Michael Duergner
2007 - 2023 Roland Gruber
2007 - 2024 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -129,6 +129,7 @@ if (!isset($_SESSION['currentPDFStructure'])) {
}
}
catch (LAMException $e) {
logNewMessage(LOG_ERR, $e->getTitle());
metaRefresh('pdfmain.php?loadFailed=1&name=' . $_GET['edit']);
exit;
}

View file

@ -138,6 +138,7 @@ if (isset($_POST['save'])) {
exit();
}
catch (LAMException $e) {
logNewMessage(LOG_ERR, $e->getTitle());
$errors[] = ["ERROR", _("Unable to save profile!"), $_POST['profname']];
}
}

View file

@ -3,7 +3,7 @@ namespace LAM\UPLOAD;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2023 Roland Gruber
Copyright (C) 2004 - 2024 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -84,6 +84,6 @@ $container = new htmlResponsiveRow();
$javaScript = new htmlJavaScript('window.lam.upload.continueUpload(\'../misc/ajax.php?function=upload&typeId=' . $type->getId() . '\', \'' . getSecurityTokenName() . '\', \'' . getSecurityTokenValue() . '\');');
$contentDiv = new htmlDiv('uploadContent', $javaScript, ['smallPaddingContent']);
$container->add($contentDiv);
parseHtml(null, $container, array(), false, null);
parseHtml(null, $container, [], false, null);
include __DIR__ . '/../../lib/adminFooter.inc';

View file

@ -12,11 +12,14 @@ return static function (RectorConfig $rectorConfig): void {
__DIR__ . '/lam/tests',
]);
//$rectorConfig->fileExtensions(['php', 'inc']);
$rectorConfig->skip([
__DIR__ . '/lam/lib/3rdParty',
]);
$rectorConfig->sets([
SetList::DEAD_CODE,
LevelSetList::UP_TO_PHP_80
]);
};