ftimme
2005-12-06 2ebd326e417953cbeadfdf67501b19a116a35440
interface/lib/app.inc.php
@@ -110,11 +110,12 @@
    2 = ERROR
   */
   
   function error($msg, $priority = 2) {
   function error($msg, $next_link = '', $stop = true, $priority = 1) {
      //$this->uses("error");
      //$this->error->message($msg, $priority);
      echo $msg;
      if($priority == 2) exit;
      if($next_link != "") echo "<a href='$next_link'>Next</a>";
      if($stop == true) die();
   }
   
   function lng($text)
@@ -136,9 +137,11 @@
      }
     
     function tpl_defaults() {
      global $conf;
      
      $this->tpl->setVar('theme',$_SESSION["s"]["theme"]);
      $this->tpl->setVar('phpsessid',session_id());
      $this->tpl->setVar('html_content_encoding',$conf["html_content_encoding"]);
        
     }