From 77d470dd60f49d4fdc218f07a93940bcbe99058a Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Fri, 4 Mar 2022 11:03:19 +0100 Subject: [PATCH] Refactor --- src/pages/home.php | 2 +- src/pages/install.php | 2 +- src/pages/logout.php | 2 +- src/pages/power.php | 2 +- src/pages/register.php | 2 +- src/pages/settings.php | 2 +- src/pages/update.php | 2 +- src/pages/wishlist.php | 2 +- src/pages/wishlists.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/home.php b/src/pages/home.php index 210f7aba..b2782530 100644 --- a/src/pages/home.php +++ b/src/pages/home.php @@ -8,7 +8,7 @@ use wishthis\Page; -$page = new page(__FILE__, 'Home'); +$page = new Page(__FILE__, 'Home'); $page->header(); $page->bodyStart(); $page->navigation(); diff --git a/src/pages/install.php b/src/pages/install.php index 1a50c599..505a0d47 100644 --- a/src/pages/install.php +++ b/src/pages/install.php @@ -13,7 +13,7 @@ if ($options && $options->getOption('isInstalled')) { die(); } -$page = new page(__FILE__, 'Install'); +$page = new Page(__FILE__, 'Install'); $page->header(); $page->bodyStart(); diff --git a/src/pages/logout.php b/src/pages/logout.php index becda65d..12273244 100644 --- a/src/pages/logout.php +++ b/src/pages/logout.php @@ -8,7 +8,7 @@ use wishthis\Page; -$page = new page(__FILE__, 'Logout'); +$page = new Page(__FILE__, 'Logout'); if (PHP_SESSION_ACTIVE === session_status()) { session_destroy(); diff --git a/src/pages/power.php b/src/pages/power.php index f6b038b9..154f6aeb 100644 --- a/src/pages/power.php +++ b/src/pages/power.php @@ -8,7 +8,7 @@ use wishthis\Page; -$page = new page(__FILE__, 'Insufficient power'); +$page = new Page(__FILE__, 'Insufficient power'); $page->header(); $page->bodyStart(); $page->navigation(); diff --git a/src/pages/register.php b/src/pages/register.php index 5cc0b7af..f44360a3 100644 --- a/src/pages/register.php +++ b/src/pages/register.php @@ -13,7 +13,7 @@ $passwordReset = isset($_GET['password-reset'], $_GET['token']); $pageTitle = $passwordReset ? 'Reset password' : 'Register'; $buttonSubmit = $passwordReset ? 'Reset' : 'Register'; -$page = new page(__FILE__, $pageTitle); +$page = new Page(__FILE__, $pageTitle); if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) { $users = $database->query('SELECT * FROM `users`;')->fetchAll(); diff --git a/src/pages/settings.php b/src/pages/settings.php index 63805826..de8b26c8 100644 --- a/src/pages/settings.php +++ b/src/pages/settings.php @@ -8,7 +8,7 @@ use wishthis\Page; -$page = new page(__FILE__, 'Settings'); +$page = new Page(__FILE__, 'Settings'); $page->header(); $page->bodyStart(); $page->navigation(); diff --git a/src/pages/update.php b/src/pages/update.php index feca04fa..0ece2778 100644 --- a/src/pages/update.php +++ b/src/pages/update.php @@ -8,7 +8,7 @@ use wishthis\{Page, User}; -$page = new page(__FILE__, 'Update', 100); +$page = new Page(__FILE__, 'Update', 100); $page->header(); $page->bodyStart(); $page->navigation(); diff --git a/src/pages/wishlist.php b/src/pages/wishlist.php index 4b28319a..bebe334d 100644 --- a/src/pages/wishlist.php +++ b/src/pages/wishlist.php @@ -19,7 +19,7 @@ if (!$wishlist->exists) { die(); } -$page = new page(__FILE__, $wishlist->data['name']); +$page = new Page(__FILE__, $wishlist->data['name']); $page->header(); $page->bodyStart(); $page->navigation(); diff --git a/src/pages/wishlists.php b/src/pages/wishlists.php index 5367798f..18d122c0 100644 --- a/src/pages/wishlists.php +++ b/src/pages/wishlists.php @@ -8,7 +8,7 @@ use wishthis\{Page, User, Wishlist}; -$page = new page(__FILE__, 'My lists'); +$page = new Page(__FILE__, 'My lists'); $page->header(); $page->bodyStart(); $page->navigation();