Ignore:
Timestamp:
Mar 26, 2010, 5:49:23 PM (14 years ago)
Author:
patdenice
Message:

Fix php5 apache configuration with upgrade.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upgrade.php

    r5196 r5387  
    6767  define('PLUGINS_TABLE', $prefixeTable.'plugins');
    6868  define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks');
     69  define('THEMES_TABLE', $prefixeTable.'themes');
     70  define('LANGUAGES_TABLE', $prefixeTable.'languages');
    6971}
    7072
     
    214216}
    215217
     218function upgrade_db_connect()
     219{
     220  global $conf;
     221
     222  try
     223  {
     224    $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'],
     225                                  $conf['db_password'], $conf['db_base']);
     226  }
     227  catch (Exception $e)
     228  {
     229    my_error(l10n($e->getMessage()), true);
     230  }
     231}
     232
    216233?>
Note: See TracChangeset for help on using the changeset viewer.