Adding handy function (return_message_and_translate) to return a message and translate it at the same time

skala
Julio Montoya 13 years ago
parent 3fa13f9938
commit a3045bf444
  1. 5
      main/inc/lib/display.lib.php

@ -331,6 +331,11 @@ class Display {
echo self::return_message($message, 'error', $filter);
}
public static function return_message_and_translate($message, $type='normal', $filter = true) {
$message = get_lang($message);
echo self::return_message($message, $type, $filter);
}
/**
* Returns a div html string with
* @param string The message

Loading…
Cancel
Save