Don't execute upload.loadConfig when it may not exist
authorMatthias Mullie <git@mullie.eu>
Thu, 5 Jan 2017 15:31:06 +0000 (16:31 +0100)
committerMatthias Mullie <git@mullie.eu>
Mon, 9 Jan 2017 07:02:01 +0000 (00:02 -0700)
commita71a52f916cdbe2ed559ff0081451ce72e0de4a3
treee215034ccdc0ad289123db347601d88e1a79220a
parent4b2f4a426297d62fda64cab3a799373f0e9ec7d4
Don't execute upload.loadConfig when it may not exist

Upload.BookletLayout creates a mw.Upload object, which has no
loadConfig method.
ForeignStructuredUpload.BookletLayout, which is a child of
Upload.BookletLayout, creates a mw.ForeignStructuredUpload
object, which does have this method.
Thus, that method should be moved to where we know the object
will have it.

Change-Id: Ibb1c0f2b8260a8b0a7cc9f02e3434aed7d163637
resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js
resources/src/mediawiki/mediawiki.Upload.BookletLayout.js