|
@@ 2296-2300 (lines=5) @@
|
| 2293 |
|
public function errors() |
| 2294 |
|
{ |
| 2295 |
|
$_output = ''; |
| 2296 |
|
foreach ($this->errors as $error) |
| 2297 |
|
{ |
| 2298 |
|
$errorLang = $this->lang->line($error) ? $this->lang->line($error) : '##' . $error . '##'; |
| 2299 |
|
$_output .= $this->error_start_delimiter . $errorLang . $this->error_end_delimiter; |
| 2300 |
|
} |
| 2301 |
|
|
| 2302 |
|
return $_output; |
| 2303 |
|
} |
|
@@ 2318-2322 (lines=5) @@
|
| 2315 |
|
if ($langify) |
| 2316 |
|
{ |
| 2317 |
|
$_output = array(); |
| 2318 |
|
foreach ($this->errors as $error) |
| 2319 |
|
{ |
| 2320 |
|
$errorLang = $this->lang->line($error) ? $this->lang->line($error) : '##' . $error . '##'; |
| 2321 |
|
$_output[] = $this->error_start_delimiter . $errorLang . $this->error_end_delimiter; |
| 2322 |
|
} |
| 2323 |
|
return $_output; |
| 2324 |
|
} |
| 2325 |
|
else |