mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/11866] Update some occurances of phpbb_db_ to new Namespace
PHPBB3-11866
This commit is contained in:
parent
8da3133238
commit
03639c081c
5 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ define('IN_PHPBB', true);
|
|||
require(dirname(__FILE__) . '/../includes/db/schema_data.php');
|
||||
require(dirname(__FILE__) . '/../phpbb/db/tools.php');
|
||||
|
||||
$dbms_type_map = phpbb_db_tools::get_dbms_type_map();
|
||||
$dbms_type_map = phpbb\db\tools::get_dbms_type_map();
|
||||
|
||||
// A list of types being unsigned for better reference in some db's
|
||||
$unsigned_types = array('UINT', 'UINT:', 'USINT', 'BOOL', 'TIMESTAMP');
|
||||
|
|
|
@ -59,7 +59,7 @@ echo "USE $dbname;$newline$newline";
|
|||
require($phpbb_root_path . 'includes/db/schema_data.' . $phpEx);
|
||||
require($phpbb_root_path . 'phpbb/db/tools.' . $phpEx);
|
||||
|
||||
$dbms_type_map = phpbb_db_tools::get_dbms_type_map();
|
||||
$dbms_type_map = phpbb\db\tools::get_dbms_type_map();
|
||||
|
||||
foreach ($schema_data as $table_name => $table_data)
|
||||
{
|
||||
|
|
|
@ -5671,7 +5671,7 @@ function phpbb_to_numeric($input)
|
|||
* Convert either 3.0 dbms or 3.1 db driver class name to 3.1 db driver class name.
|
||||
*
|
||||
* If $dbms is a valid 3.1 db driver class name, returns it unchanged.
|
||||
* Otherwise prepends phpbb_db_driver_ to the dbms to convert a 3.0 dbms
|
||||
* Otherwise prepends phpbb\db\driver\ to the dbms to convert a 3.0 dbms
|
||||
* to 3.1 db driver class name.
|
||||
*
|
||||
* @param string $dbms dbms parameter
|
||||
|
|
|
@ -84,7 +84,7 @@ class driver
|
|||
|
||||
// Fill default sql layer based on the class being called.
|
||||
// This can be changed by the specified layer itself later if needed.
|
||||
$this->sql_layer = substr(get_class($this), strlen('phpbb_db_driver_'));
|
||||
$this->sql_layer = substr(get_class($this), strlen('phpbb\db\driver\\'));
|
||||
|
||||
// Do not change this please! This variable is used to easy the use of it - and is hardcoded.
|
||||
$this->any_char = chr(0) . '%';
|
||||
|
|
|
@ -57,7 +57,7 @@ found below. More information on configuration options can be found on the
|
|||
wiki (see below).
|
||||
|
||||
<?php
|
||||
$dbms = 'phpbb_db_driver_mysqli';
|
||||
$dbms = 'phpbb\\db\\driver\\mysqli';
|
||||
$dbhost = 'localhost';
|
||||
$dbport = '';
|
||||
$dbname = 'database';
|
||||
|
|
Loading…
Add table
Reference in a new issue