1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Issue #4283 - Update deprecated sql method usage. Removed old code.

This commit is contained in:
Cameron
2020-12-17 05:52:54 -08:00
parent 8c0e2c0392
commit 42f0e902d4
42 changed files with 76 additions and 3627 deletions

View File

@@ -52,8 +52,7 @@ if ($action == 'exit')
if ($action == "comments")
{
//$sql->db_Select("user", "user_name", "user_id=".$id);
//$row = $sql->db_Fetch();
if($id == e107::getUser()->getId())
{
$user_name = USERNAME;
@@ -70,11 +69,8 @@ if ($action == "comments")
$sql2 = e107::getDb('sql2');
if($user_name)
{
// $ccaption = UP_LAN_1.$user_name;
$ccaption = str_replace('[x]', $user_name, UP_LAN_1);
/*$sql->db_Select("user", "user_comments", "user_id=".$id);
$row = $sql->db_Fetch();
$ctotal = $row['user_comments'];*/
$ctotal = e107::getSystemUser($id, false)->getValue('comments', 0); // user_* getter shorthand
$data = $cobj->getCommentData(10, $from, 'comment_author_id ='.$id);
}