From aecbabbb4a1c18ee066a4a2214da90b050d52525 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 25 Sep 2009 22:43:12 +0000 Subject: [PATCH] - reverse the timeout and i18n_array args, i18n should go first as it will be used much more often. --- common.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.inc.php b/common.inc.php index d3e1398..a5bd1b8 100644 --- a/common.inc.php +++ b/common.inc.php @@ -1142,7 +1142,7 @@ function message_push($m) $_SESSION['messages'][] = $m; } -function notice_($str, $timeout=5000, $i18n_array=array(), $type='notice') +function notice_($str, $i18n_array=array(), $timeout=-1, $type='notice') { if($timeout == -1) $timeout = 5000; echo ""; } -function happy_($str, $timeout=5000, $i18n_array=array()) +function happy_($str, $i18n_array=array(), $timeout=-1) { notice_($str, $timeout, $i18n_array, 'happy'); } -function error_($str, $timeout=5000, $i18n_array=array()) +function error_($str, $i18n_array=array(), $timeout=-1) { notice_($str, $timeout, $i18n_array, 'error'); }