mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-18 13:54:01 +08:00
fix default parameter value of OptionForm::addMessage
This commit is contained in:
parent
2a419628f9
commit
2be20b4bee
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user