Skip to content

Commit a4bf9d9

Browse files
committed
code refactor
1 parent cf28a71 commit a4bf9d9

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

classes/migration/upgrade/v3_4_0/I7264_UpdateEmailTemplates.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ protected function oldNewVariablesMap(): array
2626
$newVariable = 'pressUrl';
2727
} elseif ($newVariable === 'contextSignature') {
2828
$newVariable = 'pressSignature';
29-
} elseif ($newVariable === 'contextAcronym') {
30-
$newVariable = 'pressAcronym';
3129
}
3230
});
3331

classes/migration/upgrade/v3_4_0/I11125_UpdateEmailTemplateVariables.php renamed to classes/migration/upgrade/v3_5_0/I11125_UpdateEmailTemplateVariables.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
22

33
/**
4-
* @file classes/migration/upgrade/v3_4_0/I11125_UpdateEmailTemplateVariables.php
4+
* @file classes/migration/upgrade/v3_5_0/I11125_UpdateEmailTemplateVariables.php
55
*
6-
* Copyright (c) 2014-2025 Simon Fraser University
7-
* Copyright (c) 2000-2025 John Willinsky
6+
* Copyright (c) 2025 Simon Fraser University
7+
* Copyright (c) 2025 John Willinsky
88
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
99
*
1010
* @class I11125_UpdateEmailTemplateVariables
1111
*
1212
* @brief Migration to update Email Template variable names
1313
*/
1414

15-
namespace APP\migration\upgrade\v3_4_0;
15+
namespace APP\migration\upgrade\v3_5_0;
1616

17-
class I11125_UpdateEmailTemplateVariables extends \PKP\migration\upgrade\v3_4_0\I11125_UpdateEmailTemplateVariables
17+
class I11125_UpdateEmailTemplateVariables extends \PKP\migration\upgrade\v3_5_0\I11125_UpdateEmailTemplateVariables
1818
{
1919
public function oldToNewVariablesMap(): array
2020
{

dbscripts/xml/upgrade.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
<migration class="PKP\migration\upgrade\v3_4_0\I7624_StrftimeDeprecation"/>
163163
<migration class="PKP\migration\upgrade\v3_5_0\I11238_PrepareDBForStructuredCitations"/>
164164
<migration class="APP\migration\upgrade\v3_5_0\I11241_MissingDecisionConstantsUpdate"/>
165+
<migration class="APP\migration\upgrade\v3_5_0\I11125_UpdateEmailTemplateVariables"/>
165166
<code function="downloadIPGeoDB"/>
166167
<note file="docs/release-notes/README-3.5.0" />
167168
</upgrade>

0 commit comments

Comments
 (0)