WordPress.org

Plugin Directory

Changeset 406303


Ignore:
Timestamp:
07/07/11 16:35:44 (3 years ago)
Author:
fredericktownes
Message:
 
Location:
w3-total-cache/trunk
Files:
3 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • w3-total-cache/trunk/inc/define.php

    r405393 r406303  
    3030define('W3TC_LIB_NUSOAP_DIR', W3TC_LIB_DIR . '/Nusoap'); 
    3131define('W3TC_PLUGINS_DIR', W3TC_DIR . '/plugins'); 
    32 define('W3TC_DB_DIR', W3TC_DIR . '/db'); 
    3332define('W3TC_INSTALL_DIR', W3TC_DIR . '/wp-content'); 
    3433define('W3TC_INSTALL_MINIFY_DIR', W3TC_INSTALL_DIR . '/w3tc/min'); 
  • w3-total-cache/trunk/wp-content/db.php

    r405393 r406303  
    2222    require_once W3TC_DIR . '/inc/define.php'; 
    2323 
    24     if (defined('DB_TYPE') && file_exists(W3TC_DB_DIR . DIRECTORY_SEPARATOR . DB_TYPE . '.php')) { 
    25         require_once W3TC_DB_DIR . DIRECTORY_SEPARATOR . DB_TYPE . '.php'; 
     24    if (defined('DB_TYPE')) { 
     25        $db_driver_path = sprintf('%s/Db/%s.php', W3TC_LIB_W3_DIR, DB_TYPE); 
     26 
     27        if (file_exists($db_driver_path)) { 
     28            require_once $db_driver_path; 
     29        } else { 
     30            die(sprintf('<strong>W3 Total Cache Error:</strong> database driver doesn\'t exist: %s.', $db_driver_path)); 
     31        } 
    2632    } 
    2733 
Note: See TracChangeset for help on using the changeset viewer.