summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
m---------site0
-rw-r--r--src/web/_views/_template/post.php4
-rw-r--r--src/web/lang/common.php2
-rw-r--r--src/web/lib/_base.php9
-rw-r--r--src/web/lib/_controller.php9
5 files changed, 3 insertions, 21 deletions
diff --git a/site b/site
-Subproject 55b14d7f837f0e219f58ed367fc3dac470f6aa2
+Subproject 1d616b98b3a817829f95c82abd8e458ae8f9c2c
diff --git a/src/web/_views/_template/post.php b/src/web/_views/_template/post.php
index 53596d7..9290f20 100644
--- a/src/web/_views/_template/post.php
+++ b/src/web/_views/_template/post.php
@@ -8,9 +8,9 @@
<span class="subtext"><?=$this->format_date($post['created'])?></span>
</div>
</div>
- <p class="content">
+ <p class="content"><div>
<?=$post['content']?>
- </p>
+ </div></p>
<?php
$liked = $post['like_id'] ? 'btn-primary' : '';
$post_attrs = array(
diff --git a/src/web/lang/common.php b/src/web/lang/common.php
index 440d7b2..f6dc5d8 100644
--- a/src/web/lang/common.php
+++ b/src/web/lang/common.php
@@ -1,6 +1,6 @@
<?php /* Copyright (c) 2024 Freya Murphy */
-$lang['version'] = 'Version 2.1.2';
+$lang['version'] = 'Version 2.1.3';
$lang['copyright'] = 'Freya Murphy © ' . date('Y');
// Defaults
diff --git a/src/web/lib/_base.php b/src/web/lib/_base.php
index 790bac9..d785e62 100644
--- a/src/web/lib/_base.php
+++ b/src/web/lib/_base.php
@@ -31,15 +31,6 @@ trait XSS_Base {
}
/**
- * Formats a ISO date
- * @param $iso_date the ISO date
- */
- public function format_date(string $iso_date): string
- {
- return date("Y-m-d D H:i", strtotime($iso_date));
- }
-
- /**
* Loads a STRING from $_GET, or returns $default on failure
*/
public function get_string(string $key, ?string $default = NULL): ?string {
diff --git a/src/web/lib/_controller.php b/src/web/lib/_controller.php
index 122a7a7..7941120 100644
--- a/src/web/lib/_controller.php
+++ b/src/web/lib/_controller.php
@@ -37,13 +37,4 @@ class XSS_Controller extends Controller {
}
return $name;
}
-
- /**
- * Formats a ISO date
- * @param $iso_date the ISO date
- */
- public function format_date(string $iso_date): string
- {
- return date("Y-m-d D H:i", strtotime($iso_date));
- }
}