mirror of
				https://github.com/Mibew/i18n.git
				synced 2025-11-04 10:35:08 +03:00 
			
		
		
		
	Fixed ability to use persistent database connection with an object of the Database class
This commit is contained in:
		
							parent
							
								
									92019f99a4
								
							
						
					
					
						commit
						b3d7a7a124
					
				@ -183,7 +183,8 @@ Class Database{
 | 
			
		||||
		$instance->dbh = new PDO(
 | 
			
		||||
			"mysql:host={$instance->dbHost};dbname={$instance->dbName}",
 | 
			
		||||
			$instance->dbLogin,
 | 
			
		||||
			$instance->dbPass
 | 
			
		||||
			$instance->dbPass,
 | 
			
		||||
			array(PDO::ATTR_PERSISTENT => $instance->usePersistentConnection)
 | 
			
		||||
		);
 | 
			
		||||
 | 
			
		||||
		if ($instance->forceCharsetInConnection) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user