mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 19:39:33 +00:00
Merge "Remove nested foreach references"
This commit is contained in:
commit
b757d5cd15
|
@ -174,8 +174,8 @@ class ApiQueryGadgets extends ApiQueryBase {
|
|||
];
|
||||
|
||||
$result = $this->getResult();
|
||||
foreach ( $metadata as &$data ) {
|
||||
foreach ( $data as $key => &$value ) {
|
||||
foreach ( $metadata as $data ) {
|
||||
foreach ( $data as $key => $value ) {
|
||||
if ( is_array( $value ) ) {
|
||||
$tag = isset( $tagNames[$key] ) ? $tagNames[$key] : $key;
|
||||
$result->setIndexedTagName( $value, $tag );
|
||||
|
|
Loading…
Reference in a new issue