increasing performance of the web frontend
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@216 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
parent
06ceddf51a
commit
d794361b87
|
|
@ -20,7 +20,9 @@ class Connection{
|
|||
|
||||
/* Verbindung herstellen (wenn noch net besteht)*/
|
||||
function _createConn(){
|
||||
if($this->conn == NULL){
|
||||
//print $this->conn."<br>";
|
||||
$status = pg_connection_status($this->conn);
|
||||
if($status !== PGSQL_CONNECTION_OK){
|
||||
$this->conn = pg_connect(Config::getPgConnString())
|
||||
or die('Verbindungsaufbau fehlgeschlagen: ' . pg_last_error());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class ModuleSet{
|
|||
}
|
||||
|
||||
function &_getConnInstance(){
|
||||
if($connInstance == NULL){
|
||||
if($this->connInstance == NULL){
|
||||
$this->connInstance = new Connection();
|
||||
}
|
||||
return $this->connInstance;
|
||||
|
|
|
|||
Loading…
Reference in New Issue