Ignore:
Timestamp:
Nov 20, 2009, 3:17:04 PM (15 years ago)
Author:
nikrou
Message:

Feature 1244 resolved
Replace all mysql functions in core code by ones independant of database engine

Fix small php code synxtax : hash must be accessed with [ ] and not { }.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/c13y_internal.class.php

    r4304 r4325  
    4343    $check_list[] = array('type' => 'PHP', 'current' => phpversion(), 'required' => REQUIRED_PHP_VERSION);
    4444
    45     list($mysql_version) = mysql_fetch_row(pwg_query('SELECT VERSION();'));
    46     $check_list[] = array('type' => 'MySQL', 'current' => $mysql_version, 'required' => REQUIRED_MYSQL_VERSION);
     45    $db_version = pwg_get_db_version();
     46    $check_list[] = array('type' => 'MySQL', 'current' => $db_version, 'required' => REQUIRED_MYSQL_VERSION);
    4747
    4848    foreach ($check_list as $elem)
     
    127127
    128128    $result = pwg_query($query);
    129     while ($row = mysql_fetch_assoc($result))
     129    while ($row = pwg_db_fetch_assoc($result))
    130130    {
    131131      $status[$row['id']] = $row['status'];
Note: See TracChangeset for help on using the changeset viewer.