mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Follow-up b10bd7003
: allow object instead of array for b/c with wikis running old code
Change-Id: I1566b73e0d8daea6c2e701f60cbcb9dd42129ec9
This commit is contained in:
parent
91a7833209
commit
1608a5e6fc
|
@ -481,7 +481,8 @@
|
|||
|
||||
data = data || {};
|
||||
|
||||
for ( i = 0; i < data.list.length; i++ ) {
|
||||
// Backwards compatibility: data.list used to be an object
|
||||
for ( i in data.list ) {
|
||||
notifData = data.list[ i ];
|
||||
content = notifData[ '*' ] || {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue