Commit 2ed005e0 authored by MBoretto's avatar MBoretto

Merge branch 'feature/externalconnection' into develop

parents 326462f6 a75bb993
......@@ -392,7 +392,7 @@ You can also store inline query and chosen inline query in the database.
Is possible to provide to the library an external mysql connection. Here's how to configure it:
```php
$telegram->enableExternalMySQL($external_pdo_connection)
$telegram->enableExternalMysql($external_pdo_connection)
//$telegram->enableExternalMySQL($external_pdo_connection, $table_prefix)
```
### Channels Support
......
......@@ -110,7 +110,7 @@ class DB
throw new TelegramException('MySQL external connection not provided!');
}
self::$pdo = $pdo;
self::$pdo = $external_pdo_connection;
self::$telegram = $telegram;
self::$mysql_credentials = null;
self::$table_prefix = $table_prefix;
......
......@@ -188,7 +188,7 @@ class Telegram
* @param PDO $external_pdo_connection PDO database object
* @param string $table_prefix
*/
public function enableExternalMySQL($external_pdo_connection, $table_prefix = null)
public function enableExternalMysql($external_pdo_connection, $table_prefix = null)
{
$this->pdo = DB::externalInitialize($external_pdo_connection, $this, $table_prefix);
$this->mysql_enabled = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment