Skip to content

Commit 0bd681d

Browse files
committed
Error message integrated
1 parent e7ea7dc commit 0bd681d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interface/lib/app.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,12 @@ function log($msg, $priority = 0) {
110110
2 = ERROR
111111
*/
112112

113-
function error($msg, $priority = 2) {
113+
function error($msg, $next_link = '', $stop = true, $priority = 1) {
114114
//$this->uses("error");
115115
//$this->error->message($msg, $priority);
116116
echo $msg;
117-
if($priority == 2) exit;
117+
if($next_link != "") echo "<a href='$next_link'>Next</a>";
118+
if($stop == true) die();
118119
}
119120

120121
function lng($text)

0 commit comments

Comments
 (0)