From 2ebd326e417953cbeadfdf67501b19a116a35440 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Tue, 06 Dec 2005 09:37:12 -0500
Subject: [PATCH] 

---
 interface/lib/app.inc.php |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 1f4ebd9..67de747 100644
--- a/interface/lib/app.inc.php
+++ b/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"]);
 	  	
 	  }
 

--
Gitblit v1.9.1