Browse Source

Fix torrent comment header display

spaghetti 9 years ago
parent
commit
8a7f4b2bdc
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      classes/commentsview.class.php
  2. 1
    1
      sections/upload/upload.php

+ 1
- 1
classes/commentsview.class.php View File

@@ -28,7 +28,7 @@ class CommentsView {
28 28
 	 */
29 29
 	static function render_comment($AuthorID, $PostID, $Body, $AddedTime, $EditedUserID, $EditedTime, $Link, $Unread = false, $Header = '', $Tools = true) {
30 30
 		$UserInfo = Users::user_info($AuthorID);
31
-		$Header = '<strong>' . Users::format_username($AuthorID, true, true, true, true, false) . '</strong> ' . time_diff($AddedTime) . $Header;
31
+		$Header = Users::format_username($AuthorID, true, true, true, true, true) . time_diff($AddedTime) . $Header;
32 32
 ?>
33 33
 		<table class="forum_post box vertical_margin<?=(!Users::has_avatars_enabled() ? ' noavatar' : '') . ($Unread ? ' forum_unread' : '')?>" id="post<?=$PostID?>">
34 34
 			<colgroup>

+ 1
- 1
sections/upload/upload.php View File

@@ -76,7 +76,7 @@ if (!empty($ArtistForm)) {
76 76
 }
77 77
 
78 78
 require(SERVER_ROOT.'/classes/torrent_form.class.php');
79
-$TorrentForm = new TORRENT_FORM($Properties, $Err);
79
+$TorrentForm = new TORRENT_FORM($Properties ?? false, $Err ?? false);
80 80
 
81 81
 $GenreTags = $Cache->get_value('genre_tags');
82 82
 if (!$GenreTags) {

Loading…
Cancel
Save