From 785452873f0ee0a27fc157b482b7551560f0282d Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 7 Nov 2023 08:04:56 -0500 Subject: fix typo --- news.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'news.php') diff --git a/news.php b/news.php index ff37489..9a237a4 100644 --- a/news.php +++ b/news.php @@ -3,6 +3,8 @@ /* Initialize random shit */ +include "data/config.php"; + include "lib/frontend.php"; $frontend = new frontend(); @@ -28,20 +30,7 @@ try{ }catch(Exception $error){ - echo - $frontend->drawerror( - "Shit", - 'This scraper returned an error:' . - '
' . htmlspecialchars($error->getMessage()) . '
' . - 'Things you can try:' . - '
' . - 'If the error persists, please contact the administrator.' - ); - die(); + $frontend->drawscrapererror($error->getMessage(), $get, "news"); } /* -- cgit v1.2.3