summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/_controller/apps/profile.php5
-rw-r--r--src/web/lang/en_US/common_lang.php2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/web/_controller/apps/profile.php b/src/web/_controller/apps/profile.php
index 3bc9a91..9e9fca6 100644
--- a/src/web/_controller/apps/profile.php
+++ b/src/web/_controller/apps/profile.php
@@ -22,6 +22,11 @@ class Profile_controller extends Controller {
}
public function index(): void {
+
+ if ($this->main->user() && !isset($_GET['id'])) {
+ $this->redirect('/profile?id=' . $this->main->user()['id']);
+ }
+
parent::index();
$data = $this->profile_model->get_data();
diff --git a/src/web/lang/en_US/common_lang.php b/src/web/lang/en_US/common_lang.php
index 7bf9510..ad75bec 100644
--- a/src/web/lang/en_US/common_lang.php
+++ b/src/web/lang/en_US/common_lang.php
@@ -1,6 +1,6 @@
<?php /* Copyright (c) 2024 Freya Murphy */
-$lang['version'] = 'Version 2.0.6';
+$lang['version'] = 'Version 2.0.7';
$lang['copyright'] = 'Freya Murphy © 2024';
// Navigation Bar Lang