diff --git a/public_html/admin/index.php b/public_html/admin/index.php index 9076f48593a47863e6a2d8983bebb6e7ae7585d9..7518eeda8b26c1d87941a5fd8eb003691e4555fc 100644 --- a/public_html/admin/index.php +++ b/public_html/admin/index.php @@ -144,7 +144,15 @@ if (!$oR->isEnabled()) { if (count($aCfg['redirects'][$sType])) { foreach ($aCfg['redirects'][$sType] as $sFrom => $aTo) { $iCount++; - $sRelFrom = $sType == 'direct' ? $sFrom : ($aTo['link'] ?? false ); + switch ($sType) { + case 'direct': + $sRelFrom = $sFrom; + break; + case 'regex': + $sRelFrom = $aTo['link'] ?? false; + break; + } + $sTable .= $sTdFirst . '<td class="type-' . $sType . '">' . $sType . '</td>' . '<td class="type-' . $sType . '">' @@ -268,7 +276,7 @@ if (!$oR->isEnabled()) { </head> <body> - <h1><a href="?"> Redirects :: admin</a></h1> + <h1><a href="?"><?php echo $oR->getTitle(); ?></a></h1> <main> <?php echo $sErrors . $sHtml; ?>