Skip to content

Commit

Permalink
Move db classes in /htdocs/core/db
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Oct 24, 2011
1 parent ecc5519 commit dd96323
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions htdocs/install/etape1.php
Expand Up @@ -116,7 +116,7 @@
// Test database connexion
if (! $error)
{
$result=@include_once($main_dir."/lib/databases/".$_POST["db_type"].".class.php");
$result=@include_once($main_dir."/core/db/".$_POST["db_type"].".class.php");
if ($result)
{
// If we ask database or user creation we need to connect as root
Expand Down Expand Up @@ -195,7 +195,7 @@
}
else
{
print "<br>\nFailed to include_once(\"".$main_dir."/lib/databases/".$_POST["db_type"].".class.php\")<br>\n";
print "<br>\nFailed to include_once(\"".$main_dir."/core/db/".$_POST["db_type"].".class.php\")<br>\n";
print '<div class="error">'.$langs->trans("ErrorWrongValueForParameter",$langs->transnoentities("WebPagesDirectory")).'</div>';
print $langs->trans("ErrorGoBackAndCorrectParameters");
$error++;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/fileconf.php
Expand Up @@ -259,7 +259,7 @@
$option='';

// Scan les drivers
$dir=DOL_DOCUMENT_ROOT.'/lib/databases';
$dir=DOL_DOCUMENT_ROOT.'/core/db';
$handle=opendir($dir);
if (is_resource($handle))
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/inc.php
Expand Up @@ -111,7 +111,7 @@
{
if (! empty($dolibarr_main_document_root) && ! empty($dolibarr_main_db_type))
{
$result=include_once($dolibarr_main_document_root . "/lib/databases/".$dolibarr_main_db_type.".class.php");
$result=include_once($dolibarr_main_document_root . "/core/db/".$dolibarr_main_db_type.".class.php");
if (! $result)
{
$includeconferror='ErrorBadValueForDolibarrMainDBType';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/lib/functions.lib.php
Expand Up @@ -44,7 +44,7 @@
*/
function getDoliDBInstance($type, $host, $user, $pass, $name, $port)
{
require_once(DOL_DOCUMENT_ROOT ."/lib/databases/".$type.".class.php");
require_once(DOL_DOCUMENT_ROOT ."/core/db/".$type.".class.php");

$class='DoliDB'.ucfirst($type);
$dolidb=new $class($type, $host, $user, $pass, $name, $port);
Expand Down
2 changes: 1 addition & 1 deletion htdocs/support/inc.php
Expand Up @@ -105,7 +105,7 @@
{
if (! empty($dolibarr_main_document_root) && ! empty($dolibarr_main_db_type))
{
$result=include_once($dolibarr_main_document_root . "/lib/databases/".$dolibarr_main_db_type.".class.php");
$result=include_once($dolibarr_main_document_root . "/core/db/".$dolibarr_main_db_type.".class.php");
if (! $result)
{
$includeconferror='ErrorBadValueForDolibarrMainDBType';
Expand Down

0 comments on commit dd96323

Please sign in to comment.