From b338781d67e510d2ebd4942351ddec235435b409 Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Sat, 26 Mar 2022 23:04:18 -0400 Subject: [PATCH] Fix a couple of page titles. --- paste.php | 1 + user.php | 1 + 2 files changed, 2 insertions(+) diff --git a/paste.php b/paste.php index feda672..67b56a2 100644 --- a/paste.php +++ b/paste.php @@ -239,6 +239,7 @@ if (!isRequesterLikelyBot() && @$_SESSION['not_unique'] !== $paste_id) { $paste->save(); } +$page_title = $paste->title; $page_template = 'view'; $recommended_pastes = getUserRecommended($paste->user); diff --git a/user.php b/user.php index 890aeaf..bd1d108 100644 --- a/user.php +++ b/user.php @@ -65,6 +65,7 @@ $is_current_user = ($current_user !== null) && ($profile_info->id == $current_us updatePageViews(); $csrf_token = setupCsrfToken(); +$page_title = 'Profile of ' . $profile_username; $page_template = 'user_profile'; array_push($script_bundles, 'user_profile'); require_once('theme/' . $default_theme . '/common.php');