@@ -29,7 +29,7 @@ if ($object) {
2929
3030 $ user_name = $ object ->getUser ()->getName ();
3131 $ user_id = $ object ->getUserId ();
32- $ user_url = Common:: relativeUrlToAbsolute ( " /user/ " . $ user_id . " / " . Common:: sanitizeForUrl ( $ user_name , true ) );
32+ $ user_url = $ object -> getUser ()-> getURI ( );
3333 $ user_avatar = "https: " . (new Gravatar ($ object ->getUser ()->getEmail ()))->getUrl (22 , "identicon " );
3434
3535} else {
@@ -70,7 +70,7 @@ require("./header.inc.phtml");
7070 $ a_uploaddate = $ a ->getCreatedDateTime ()->format ("l, F j, Y " );
7171 $ a_author_name = $ a ->getUser ()->getName ();
7272 $ a_author_id = $ a ->getUserId ();
73- $ a_author_url = Common:: relativeUrlToAbsolute ( " /user/ " . $ a_author_id . " / " . Common:: sanitizeForUrl ( $ a_author_name , true ) );
73+ $ a_author_url = $ a -> getUser ()-> getURI ( );
7474 $ a_author_avatar = "https: " . (new Gravatar ($ a ->getUser ()->getEmail ()))->getUrl (22 , "identicon " );
7575?>
7676 <tr><td><a href="<?php echo $ a_url ; ?> "><?php echo $ a_filename ; ?> </a></td><td><?php echo $ a_size ; ?> </td><td><?php echo $ a_uploaddate ; ?> </td><td><a href="<?php echo $ a_author_url ; ?> "><img class="avatar" src="<?php echo $ a_author_avatar ; ?> "/> <?php echo htmlspecialchars ($ a_author_name , ENT_HTML5 , "UTF-8 " ); ?> </a></td></tr>
@@ -90,7 +90,7 @@ require("./header.inc.phtml");
9090 $ c_user = $ c ->getUser ();
9191 $ c_user_name = $ c_user ->getName ();
9292 $ c_user_id = $ c ->getUserId ();
93- $ c_user_url = Common:: relativeUrlToAbsolute ( " /user/ " . $ c_user_id . " / " . Common:: sanitizeForUrl ( $ c_user_name , true ) );
93+ $ c_user_url = $ c_user -> getURI ( );
9494 $ c_user_avatar = "https: " . (new Gravatar ($ c_user ->getEmail ()))->getUrl (22 , "identicon " );
9595?>
9696 <tr><td><a href="<?php echo $ c_user_url ; ?> "><img class="avatar" src="<?php echo $ c_user_avatar ; ?> "/> <?php echo htmlspecialchars ($ c_user_name , ENT_HTML5 , "UTF-8 " ); ?> </a><br/><time class="comment_timestamp" datetime="<?php echo $ c ->getCreatedDateTime ()->format ("c " ); ?> "><?php echo $ c ->getCreatedDateTime ()->format ("D M j, Y g:ia T " ); ?> </time></td><td><?php echo $ c ->getContent (true ); ?> </td></tr>
0 commit comments