Commit 6e583469 authored by damjan's avatar damjan

[TASK] Using constants everywhere for $splitFile.

parent 83555d53
......@@ -40,6 +40,9 @@ class GeneralController extends AbstractBackendController {
/** Code for normal split operation */
const NORMAL_SPLIT = 1;
/** Code for merge operation */
const MERGE = 2;
/**
* Renders last-opened page. This action ai called upon opening LFEditor.
*
......@@ -120,10 +123,10 @@ class GeneralController extends AbstractBackendController {
if ($transformFile === 'xlf') {
$splitFile = self::NORMAL_SPLIT;
}
if (($splitFile == 1 || $splitFile == 2)) {
if (($splitFile == self::NORMAL_SPLIT || $splitFile == self::MERGE)) {
$langModes = array();
// set vars
if ($splitFile != 1 && $splitFile != 2) {
if ($splitFile != self::NORMAL_SPLIT && $splitFile != self::MERGE) {
$splitFile = 0;
}
$langKeys = Functions::buildLangArray();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment