Ignore:
Timestamp:
Mar 28, 2010, 9:46:42 PM (11 years ago)
Author:
grum
Message:

Update the plugin for compatibility with Piwigo 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserStat/userstat_aip.class.inc.php

    r4270 r5433  
    201201    if($result)
    202202    {
    203       while($row=mysql_fetch_assoc($result))
     203      while($row=pwg_db_fetch_assoc($result))
    204204      {
    205205        $row['indent']=substr_count($row['global_rank'], '.');
     
    243243    if($result)
    244244    {
    245       $row=mysql_fetch_assoc($result);
     245      $row=pwg_db_fetch_assoc($result);
    246246      return($row["username"]);
    247247    }
     
    277277    if($result)
    278278    {
    279       while($row=mysql_fetch_row($result))
     279      while($row=pwg_db_fetch_row($result))
    280280      {
    281281        $returned[]=Array(
     
    304304    if($result)
    305305    {
    306       while($row=mysql_fetch_assoc($result))
     306      while($row=pwg_db_fetch_assoc($result))
    307307      {
    308308        $row["humanReadable"]=$list[$row["language"]];
     
    323323    $returned = array();
    324324
    325     $sql="SELECT count(user_id) as nbUsers, template FROM ".USER_INFOS_TABLE." GROUP BY template ORDER BY nbUsers DESC";
    326     $result=pwg_query($sql);
    327     if($result)
    328     {
    329       while($row=mysql_fetch_assoc($result))
     325    $sql="SELECT count(user_id) as nbUsers, theme FROM ".USER_INFOS_TABLE." GROUP BY theme ORDER BY nbUsers DESC";
     326    $result=pwg_query($sql);
     327    if($result)
     328    {
     329      while($row=pwg_db_fetch_assoc($result))
    330330      {
    331331        $returned[]=$row;
     
    359359    $sql="
    360360SELECT name,
    361        MAX(id) AS id,
     361       id,
    362362       MAX(nbRates) AS nbRates,
    363363       MAX(maxRate) AS maxRate,
     
    409409    if($result)
    410410    {
    411       while($row=mysql_fetch_assoc($result))
     411      while($row=pwg_db_fetch_assoc($result))
    412412      {
    413413        $returned[]=$row;
     
    506506    if($result)
    507507    {
    508       while($row=mysql_fetch_assoc($result))
     508      while($row=pwg_db_fetch_assoc($result))
    509509      {
    510510        $returned[$row['categoryId']]=$row;
Note: See TracChangeset for help on using the changeset viewer.