dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DatabaseMysqlBase visibility cleanups
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
OOUIHTMLForm.php
diff --git
a/includes/htmlform/OOUIHTMLForm.php
b/includes/htmlform/OOUIHTMLForm.php
index
bbd3473
..
6fbf15b
100644
(file)
--- a/
includes/htmlform/OOUIHTMLForm.php
+++ b/
includes/htmlform/OOUIHTMLForm.php
@@
-202,8
+202,8
@@
class OOUIHTMLForm extends HTMLForm {
} else {
$errors = $elements->getErrorsByType( $elementsType );
foreach ( $errors as &$error ) {
} else {
$errors = $elements->getErrorsByType( $elementsType );
foreach ( $errors as &$error ) {
- // Input:
array( 'message' => 'foo', 'errors' => array( 'a', 'b', 'c' ) )
- // Output:
array( 'foo', 'a', 'b', 'c' )
+ // Input:
[ 'message' => 'foo', 'errors' => [ 'a', 'b', 'c' ] ]
+ // Output:
[ 'foo', 'a', 'b', 'c' ]
$error = array_merge( [ $error['message'] ], $error['params'] );
}
}
$error = array_merge( [ $error['message'] ], $error['params'] );
}
}