From c6e05a8eebc58624c675d4b10d33e94e6b6fa83b Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 12 Sep 2011 10:16:19 -0400
Subject: [PATCH] Implemented: FS#1385 - Define all Email aliases in dovecot autoresponder

---
 interface/lib/app.inc.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 32b5918..0690d5d 100644
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -75,6 +75,11 @@
 
 		$this->uses('auth,plugin,functions');
 	}
+	
+	public function __destruct() {
+		session_write_close();
+		if(isset($this->db)) $this->db->closeConn();
+	}
 
 	public function uses($classes) {
 		$cl = explode(',', $classes);
@@ -157,6 +162,7 @@
 
 	/** Translates strings in current language */
 	public function lng($text) {
+		global $conf;
 		if($this->_language_inc != 1) {
 			$language = (isset($_SESSION['s']['language']))?$_SESSION['s']['language']:$conf['language'];
 			//* loading global Wordbook

--
Gitblit v1.9.1