From 1897c7aeb729bbc09fb19f204b72f5c2d4e74553 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Thu, 26 Jan 2023 21:11:05 +0100 Subject: [PATCH] Use correct variable --- www/index.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/www/index.php b/www/index.php index e933e05..f16d0aa 100644 --- a/www/index.php +++ b/www/index.php @@ -97,19 +97,19 @@ function send_html(): void $title = _( 'Onion link list - Not found'); }elseif(!empty($_REQUEST['q'])) { $title = sprintf(_( 'Onion link list - Searching for %s' ), htmlspecialchars($_REQUEST['q'])); - } elseif ($cat === count($categories) && $_REQUEST[ 'pg' ] > 1){ + } elseif ($category === count($categories) && $_REQUEST[ 'pg' ] > 1){ $title = sprintf(_( 'Onion link list - Page %d' ), $_REQUEST[ 'pg' ]); - } elseif ($cat < count($categories) && $_REQUEST[ 'pg' ] > 1){ - $title = sprintf(_( 'Onion link list - %1$s - Page %2$d' ), $categories[$cat], $_REQUEST[ 'pg' ]); - } elseif ($cat < count($categories)){ - $title = sprintf(_( 'Onion link list - %s' ), $categories[$cat]); - } elseif ($cat === count($categories) + 3){ + } elseif ($category < count($categories) && $_REQUEST[ 'pg' ] > 1){ + $title = sprintf(_( 'Onion link list - %1$s - Page %2$d' ), $categories[$category], $_REQUEST[ 'pg' ]); + } elseif ($category < count($categories)){ + $title = sprintf(_( 'Onion link list - %s' ), $categories[$category]); + } elseif ($category === count($categories) + 3){ $title = sprintf(_( 'Onion link list - %s' ), _('Phishing Clones')); - } elseif ($cat === count($categories) + 2 && $_REQUEST[ 'pg' ] > 1){ + } elseif ($category === count($categories) + 2 && $_REQUEST[ 'pg' ] > 1){ $title = sprintf(_( 'Onion link list - %1$s - Page %2$d' ), _('Offline > 1 week'), $_REQUEST['pg']); - } elseif ($cat === count($categories) + 2){ + } elseif ($category === count($categories) + 2){ $title = sprintf(_( 'Onion link list - %s' ), _('Offline > 1 week')); - } elseif ($cat === count($categories) + 1){ + } elseif ($category === count($categories) + 1){ $title = sprintf(_( 'Onion link list - %s' ), _('Last added')); } else { $title = _( 'Onion link list' );