fix default parameter value of OptionForm::addMessage

This commit is contained in:
printempw 2017-01-19 12:57:36 +08:00
parent 2a419628f9
commit 2be20b4bee

View File

@ -164,7 +164,7 @@ class OptionForm
* @param string $style
* @return $this
*/
public function addMessage($msg, $style = "info")
public function addMessage($msg = self::AUTO_DETECT, $style = "info")
{
if ($msg == self::AUTO_DETECT) {
$msg = trans("options.$this->id.message");