From: Fomafix Date: Sun, 21 Jan 2018 21:35:37 +0000 (+0100) Subject: watch.js: Let api.js do the joining of the array X-Git-Tag: 1.31.0-rc.0~844 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=50945083b80981946f900a129f0d5d2b660b1a5e;p=lhc%2Fweb%2Fwiklou.git watch.js: Let api.js do the joining of the array Change-Id: Ie283ed3e071fe1a041f040e72cac061ebc3209d0 --- diff --git a/resources/src/mediawiki/api/watch.js b/resources/src/mediawiki/api/watch.js index f50e59a918..025c111e84 100644 --- a/resources/src/mediawiki/api/watch.js +++ b/resources/src/mediawiki/api/watch.js @@ -28,7 +28,7 @@ { formatversion: 2, action: 'watch', - titles: Array.isArray( pages ) ? pages.join( '|' ) : String( pages ) + titles: Array.isArray( pages ) ? pages : String( pages ) }, addParams )