removed obsolete copying

This commit is contained in:
Roland Gruber 2017-01-11 21:20:08 +01:00
parent adcea47ce5
commit f1fb0bf355
2 changed files with 0 additions and 15 deletions

View File

@ -131,19 +131,6 @@ function upgradeConfigToServerProfileFolders($profiles) {
recursiveDelete('../config/profiles', $profiles); recursiveDelete('../config/profiles', $profiles);
} }
/**
* Saves an hash array (attribute => value) to an account profile
*
* @param array $profiles server profiles
*/
function copyConfigTemplates($profiles) {
foreach ($profiles as $profile) {
// copy templates but do not override existing files
recursiveCopy('../config/templates/pdf/', '../config/pdf/' . $profile, $profiles, null, false);
recursiveCopy('../config/templates/profiles/', '../config/profiles/' . $profile, $profiles, null, false);
}
}
/** /**
* Copy a file or recursively copy a directory * Copy a file or recursively copy a directory
* *

View File

@ -229,8 +229,6 @@ function display_LoginPage($config_object, $cfgMain) {
StatusMessage('INFO', 'Config file migration finished.'); StatusMessage('INFO', 'Config file migration finished.');
} }
} }
// copy any missing default profiles
copyConfigTemplates($profiles);
if (isLAMProVersion() && $licenseValidator->isEvaluationLicense()) { if (isLAMProVersion() && $licenseValidator->isEvaluationLicense()) {
StatusMessage('INFO', _('Evaluation Licence')); StatusMessage('INFO', _('Evaluation Licence'));