Commit 329e6ee0 by Alexander Mohorev

Use elseif instead of else if

parent bb855088
...@@ -128,14 +128,11 @@ class TranslationController extends Controller ...@@ -128,14 +128,11 @@ class TranslationController extends Controller
foreach ($lines as $key => $val) { foreach ($lines as $key => $val) {
if (mb_substr($val, 0, 1, 'utf-8') === '@') { if (mb_substr($val, 0, 1, 'utf-8') === '@') {
$lines[$key] = '<span class="info">' . Html::encode($val) . '</span>'; $lines[$key] = '<span class="info">' . Html::encode($val) . '</span>';
} } elseif (mb_substr($val, 0, 1, 'utf-8') === '+') {
else if (mb_substr($val, 0, 1, 'utf-8') === '+') {
$lines[$key] = '<ins>' . Html::encode($val) . '</ins>'; $lines[$key] = '<ins>' . Html::encode($val) . '</ins>';
} } elseif (mb_substr($val, 0, 1, 'utf-8') === '-') {
else if (mb_substr($val, 0, 1, 'utf-8') === '-') {
$lines[$key] = '<del>' . Html::encode($val) . '</del>'; $lines[$key] = '<del>' . Html::encode($val) . '</del>';
} } else {
else {
$lines[$key] = Html::encode($val); $lines[$key] = Html::encode($val);
} }
} }
......
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