| @@ 509-518 (lines=10) @@ | ||
| 506 | { |
|
| 507 | if (!$ashtml) { |
|
| 508 | return $this->errors; |
|
| 509 | } else { |
|
| 510 | $ret = ""; |
|
| 511 | if (!empty($this->errors)) { |
|
| 512 | $ret = "<h4>" . XoopsLocale::ERRORS . "</h4>"; |
|
| 513 | foreach ($this->errors as $error) { |
|
| 514 | $ret .= $error . "<br />"; |
|
| 515 | } |
|
| 516 | } |
|
| 517 | return $ret; |
|
| 518 | } |
|
| 519 | } |
|
| 520 | ||
| 521 | // public |
|
| @@ 95-101 (lines=7) @@ | ||
| 92 | $xoops = \Xoops::getInstance(); |
|
| 93 | $ret = '<br />'; |
|
| 94 | if ($xoops->getConfig('debug_mode') == 1 || $xoops->getConfig('debug_mode') == 2) { |
|
| 95 | if (!empty($this->errors)) { |
|
| 96 | foreach ($this->errors as $errstr) { |
|
| 97 | $ret .= $errstr . '<br/>'; |
|
| 98 | } |
|
| 99 | } else { |
|
| 100 | $ret .= \XoopsLocale::NONE . '<br />'; |
|
| 101 | } |
|
| 102 | $ret .= sprintf(\XoopsLocale::F_USING_AUTHENTICATION_METHOD, $this->auth_method); |
|
| 103 | } else { |
|
| 104 | $ret .= \XoopsLocale::E_INCORRECT_LOGIN; |
|