Changeset 5427 for extensions


Ignore:
Timestamp:
Mar 28, 2010, 7:19:23 PM (14 years ago)
Author:
grum
Message:

Update the plugin for compatibility with Piwigo 2.1 - use dblayer for sql queries

Location:
extensions/AMenuManager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_aip.class.inc.php

    r5421 r5427  
    609609    if($result)
    610610    {
    611       $tmp=mysql_fetch_row($result);
     611      $tmp=pwg_db_fetch_row($result);
    612612      $tmp=$tmp[0];
    613613    }
     
    803803    if($result)
    804804    {
    805       $returned=mysql_fetch_array($result);
     805      $returned=pwg_db_fetch_assoc($result);
    806806      //$returned['label']=stripslashes($returned['label']);
    807807    }
     
    817817    {
    818818      $tmp=array();
    819       while($row=mysql_fetch_array($result))
     819      while($row=pwg_db_fetch_assoc($result))
    820820      {
    821821        $tmp[$row['id']]=$row['position'];
     
    879879    if($result)
    880880    {
    881       while($returned[]=mysql_fetch_array($result));
     881      while($returned[]=pwg_db_fetch_assoc($result));
    882882    }
    883883    return($returned);
     
    917917    if($result)
    918918    {
    919       $row=mysql_fetch_row($result);
     919      $row=pwg_db_fetch_row($result);
    920920      if(is_array($row))
    921921      {
  • extensions/AMenuManager/amm_pip.class.inc.php

    r5421 r5427  
    215215    if($result)
    216216    {
    217       while($row=mysql_fetch_assoc($result))
     217      while($row=pwg_db_fetch_assoc($result))
    218218      {
    219219        array_push($returned, $row['group_id']);
     
    271271
    272272      $result = pwg_query($sql);
    273       if($result and $nfo = mysql_fetch_array($result))
     273      if($result and $nfo = pwg_db_fetch_assoc($result))
    274274      {
    275275        $nfo['section']='category';
  • extensions/AMenuManager/maintain.inc.php

    r4395 r5427  
    2020{
    2121  @include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/main.inc.php');
    22   // need GPC release greater or equal than 2.0.4
     22  // need GPC release greater or equal than 2.0.5
    2323
    24   if(checkGPCRelease(2,0,4))
     24  if(checkGPCRelease(2,0,5))
    2525  {
    2626    @include_once("amm_install.class.inc.php");
     
    3131function gpcMsgError(&$errors)
    3232{
    33   array_push($errors, sprintf(l10n('Grum Plugin Classes is not installed (release >= %s)'), "2.0.4"));
     33  array_push($errors, sprintf(l10n('Grum Plugin Classes is not installed (release >= %s)'), "2.0.5"));
    3434}
    3535// -----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.