Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2007-08-01 22:05:00 +0400
committermattpiwik <matthieu.aubry@gmail.com>2007-08-01 22:05:00 +0400
commitbf39418947240ecfb17b64ee50afeefc82ff933c (patch)
treeb7dd3157eb906856f4b3b9703eb2e9ca1c348c51 /libs/Zend/Db/Adapter/Mysqli.php
parent01c888644ff655287e496741e137216e1d539ac1 (diff)
- implemented basic plugin system in the piwik.php logging engine
- added some config for the loggingEngine - wrote simple PDO access layer / simple config layer - specified all the classes/method of the piwik.php - ported the JS file from phpmyvisites and fixed some bugs in it (needs testing on IE/FF/OPERA/KONQUEROR/SAFARI on MAC/WINDOWS/LINUX with the plugins enabled/disabled) git-svn-id: http://dev.piwik.org/svn/trunk@24 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/Zend/Db/Adapter/Mysqli.php')
-rwxr-xr-xlibs/Zend/Db/Adapter/Mysqli.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/Zend/Db/Adapter/Mysqli.php b/libs/Zend/Db/Adapter/Mysqli.php
index 51b8f29c27..903a8041be 100755
--- a/libs/Zend/Db/Adapter/Mysqli.php
+++ b/libs/Zend/Db/Adapter/Mysqli.php
@@ -243,9 +243,18 @@ class Zend_Db_Adapter_Mysqli extends Zend_Db_Adapter_Abstract
$port = null;
}
+ if(!class_exists("mysqli"))
+ {
+ /**
+ * @see Zend_Db_Adapter_Mysqli_Exception
+ */
+ require_once 'Zend/Db/Adapter/Mysqli/Exception.php';
+ throw new Zend_Db_Adapter_Mysqli_Exception("The extension mysqli is not installed.");
+ }
+
// Suppress connection warnings here.
// Throw an exception instead.
- @$this->_connection = new mysqli(
+ $this->_connection = new mysqli(
$this->_config['host'],
$this->_config['username'],
$this->_config['password'],