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');