Changeset 20720


Ignore:
Timestamp:
Feb 12, 2013, 12:06:00 PM (11 years ago)
Author:
mistic100
Message:

feature:65 pwg_db_connect doesn't return anything now

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_install.inc.php

    r19703 r20720  
    144144function install_db_connect(&$infos, &$errors)
    145145{
    146   global $pwg_db_link;
    147  
    148146  try
    149147  {
    150     $pwg_db_link = pwg_db_connect($_POST['dbhost'], $_POST['dbuser'], $_POST['dbpasswd'], $_POST['dbname']);
    151     if ($pwg_db_link)
    152     {
    153       pwg_db_check_version();
    154     }
     148    pwg_db_connect($_POST['dbhost'], $_POST['dbuser'],
     149                   $_POST['dbpasswd'], $_POST['dbname']);
     150    pwg_db_check_version();
    155151  }
    156152  catch (Exception $e)
  • trunk/admin/include/functions_upgrade.php

    r19703 r20720  
    315315  try
    316316  {
    317     $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'], $conf['db_password'], $conf['db_base']);
    318     if ($pwg_db_link)
    319     {
    320       pwg_db_check_version();
    321     }
     317    pwg_db_connect($conf['db_host'], $conf['db_user'],
     318                   $conf['db_password'], $conf['db_base']);
     319    pwg_db_check_version();
    322320  }
    323321  catch (Exception $e)
  • trunk/include/common.inc.php

    r20599 r20720  
    112112try
    113113{
    114   $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'],
    115                                 $conf['db_password'], $conf['db_base']);
     114  pwg_db_connect($conf['db_host'], $conf['db_user'],
     115                 $conf['db_password'], $conf['db_base']);
    116116}
    117117catch (Exception $e)
  • trunk/upgrade_feed.php

    r19703 r20720  
    6161try
    6262{
    63   $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'],
    64                                 $conf['db_password'], $conf['db_base']);
     63  pwg_db_connect($conf['db_host'], $conf['db_user'],
     64                 $conf['db_password'], $conf['db_base']);
    6565}
    6666catch (Exception $e)
Note: See TracChangeset for help on using the changeset viewer.