tbrehm
2011-09-12 c6e05a8eebc58624c675d4b10d33e94e6b6fa83b
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