Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
682ed39d
Commit
682ed39d
authored
Aug 10, 2011
by
tbrehm
Browse files
Added destructor to mysql server class.
parent
99efe963
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/db_mysql.inc.php
View file @
682ed39d
...
...
@@ -45,8 +45,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var
$show_error_messages
=
true
;
// constructor
function
db
()
{
public
function
__construct
()
{
global
$conf
;
$this
->
dbHost
=
$conf
[
'db_host'
];
...
...
@@ -56,6 +55,10 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
$this
->
dbCharset
=
$conf
[
'db_charset'
];
//$this->connect();
}
public
function
__destruct
()
{
$this
->
closeConn
();
}
// error handler
function
updateError
(
$location
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment