Changeset 8994


Ignore:
Timestamp:
Jan 30, 2011, 10:33:56 PM (10 years ago)
Author:
grum
Message:

release 3.0.0
fix bug on install/update process

Location:
extensions/AMenuManager
Files:
2 edited

Legend:

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

    r8991 r8994  
    272272
    273273      $tables_def = create_table_add_character_set($tables_def);
     274      $this->tablef->setTables(array(
     275        $this->tables['personalised_langs'],
     276        $this->tables['blocks'])
     277      );
    274278      $result=$this->tablef->create($tables_def);
    275279
     
    292296
    293297      $users=new GPCUsers();
     298      $uList=array();
     299      foreach($users->getList() as $user)
     300      {
     301        $uList[]=$user['id'];
     302      }
    294303      $sql="UPDATE `".$this->tables['urls']."`
    295             SET accessUsers='".pwg_db_real_escape_string(implode(',', $users->getList()))."';";
     304            SET accessUsers='".pwg_db_real_escape_string(implode(',', $uList))."';";
    296305      pwg_query($sql);
    297306
  • extensions/AMenuManager/maintain.inc.php

    r8989 r8994  
    2121{
    2222  @include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
    23   // need GPC release greater or equal than 3.3.3
    24   if(CommonPlugin::checkGPCRelease(3,3,3))
     23  // need GPC release greater or equal than 3.4.0
     24  if(CommonPlugin::checkGPCRelease(3,4,0))
    2525  {
    26     @include_once("amm_install.class.inc.php");
     26    include_once("amm_install.class.inc.php");
    2727    $gpcInstalled=true;
    2828  }
Note: See TracChangeset for help on using the changeset viewer.