From 39f4d2134f332d3d6577f8cf5b3f4b9d4f665c41 Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Tue, 10 Aug 2021 16:42:07 -0600 Subject: Change URLs to relative paths --- includes/model/Post.php | 2 +- includes/templates/head.php | 4 ++-- includes/templates/header.php | 8 ++++---- register.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/model/Post.php b/includes/model/Post.php index f251773..7e02793 100755 --- a/includes/model/Post.php +++ b/includes/model/Post.php @@ -17,7 +17,7 @@ function create_quote(int $id): string return '
This post has been deleted'; } - return '
Quote from ' . $reply['user_name'] . ''; + return '
' . $reply['post_content'] . '
Quote from ' . $reply['user_name'] . ''; } function format_post_content(string $post_content) diff --git a/includes/templates/head.php b/includes/templates/head.php index 07b6e80..d7c5758 100755 --- a/includes/templates/head.php +++ b/includes/templates/head.php @@ -1,4 +1,4 @@ - - + + \ No newline at end of file diff --git a/includes/templates/header.php b/includes/templates/header.php index 8187cb8..c70821a 100755 --- a/includes/templates/header.php +++ b/includes/templates/header.php @@ -1,8 +1,8 @@
' . $reply['post_content'] . '
-[Home] -[Create a thread] +[Home] +[Create a thread] is_signed_in()) { $user = Session::get()->get_current_user(); - echo '[' . $user->name . '\'s Profile] [Log out]'; + echo '[' . $user->name . '\'s Profile] [Log out]'; } else { - echo '[Sign in] or [Register an account]'; + echo '[Sign in] or [Register an account]'; } ?> diff --git a/register.php b/register.php index 34e43a0..d7f5fed 100755 --- a/register.php +++ b/register.php @@ -30,7 +30,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $form->on_success(function () use ($username, $password) { User::register($username, $password); - echo '
Account successfully registered! You can now sign in
'; + echo 'Account successfully registered! You can now sign in
'; }); } ?> -- cgit v1.2.3