Ignore:
Timestamp:
May 5, 2011, 12:01:43 PM (13 years ago)
Author:
plg
Message:

bug 2298 fixed: if missing, new tables are created during plugin activation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/maintain.inc.php

    r9585 r10773  
    107107{
    108108  global $prefixeTable;
     109
     110  $are_new_tables_installed = false;
     111 
     112  $query = 'SHOW TABLES;';
     113  $result = pwg_query($query);
     114  while ($row = pwg_db_fetch_row($result))
     115  {
     116    if ($prefixeTable.'community_permissions' == $row[0])
     117    {
     118      $are_new_tables_installed = true;
     119    }
     120  }
     121
     122  if (!$are_new_tables_installed)
     123  {
     124    plugin_install();
     125  }
    109126
    110127  community_get_data_from_core21();
Note: See TracChangeset for help on using the changeset viewer.