Fixed Display::return_message() for confirmation-message type - refs #3712

skala
Bryan Fuertes 15 years ago
parent 1d81c859de
commit a593257143
  1. 12
      main/inc/lib/display.lib.php

@ -374,6 +374,10 @@ class Display {
/**
* Returns a div html string with
* @param string The message
* @param string The message type (confirm,normal,warning,error)
* @param bool Whether to XSS-filter or not
* @return string Message wrapped into an HTML div
*/
public function return_message($message, $type='normal', $filter = true) {
if ($filter) {
@ -386,10 +390,12 @@ class Display {
case 'error':
$class = 'error-message';
break;
case 'normal':
case 'confirmation-message':
case 'confirm':
$class = 'confirmation-message';
break;
case 'normal':
default:
$class = 'normal-message';
$class = 'normal-message';
}
return self::div($message, array('class'=>$class));
}

Loading…
Cancel
Save