diff options
author | Nils Adermann <naderman@naderman.de> | 2013-07-14 16:35:04 -0400 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2013-07-14 16:35:04 -0400 |
commit | b3e8734a490084d1cb05af97b50748e777663a07 (patch) | |
tree | f8adbc31aec1ab01d194f74a13f2ea6647d9c99c /phpBB | |
parent | adc58ba0848a23555044dd76d0b03b9055c81f40 (diff) | |
download | forums-b3e8734a490084d1cb05af97b50748e777663a07.tar forums-b3e8734a490084d1cb05af97b50748e777663a07.tar.gz forums-b3e8734a490084d1cb05af97b50748e777663a07.tar.bz2 forums-b3e8734a490084d1cb05af97b50748e777663a07.tar.xz forums-b3e8734a490084d1cb05af97b50748e777663a07.zip |
[ticket/11700] Load the dbms with namespaces
PHPBB3-11700
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 174ba712ba..f0681c9687 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -5647,24 +5647,24 @@ function phpbb_convert_30_dbms_to_31($dbms) // true for mysqli class. // However, per the docblock any valid 3.1 driver name should be // recognized by this function, and have priority over 3.0 dbms. - if (class_exists('phpbb_db_driver_' . $dbms)) + if (class_exists('\phpbb\db\driver\\' . $dbms)) { - return 'phpbb_db_driver_' . $dbms; + return '\phpbb\db\driver\\' . $dbms; } if (class_exists($dbms)) { - // Additionally we could check that $dbms extends phpbb_db_driver. + // Additionally we could check that $dbms extends phpbb\db\driver\driver. // http://php.net/manual/en/class.reflectionclass.php // Beware of possible performance issues: // http://stackoverflow.com/questions/294582/php-5-reflection-api-performance // We could check for interface implementation in all paths or - // only when we do not prepend phpbb_db_driver_. + // only when we do not prepend phpbb\db\driver\. /* $reflection = new \ReflectionClass($dbms); - if ($reflection->isSubclassOf('phpbb_db_driver')) + if ($reflection->isSubclassOf('phpbb\db\driver\driver')) { return $dbms; } |