Index: branches/uploadwizard/extensions/UploadWizard/UploadWizardMessages.php |
— | — | @@ -49,8 +49,7 @@ |
50 | 50 | $messagesForJs[ $key ] = wfMsgGetKey( $key, /*DB*/true, $language, /*Transform*/false ); |
51 | 51 | } |
52 | 52 | |
53 | | - $json = new Services_JSON(); |
54 | | - $messagesJson = $json->encode( $messagesForJs ); |
| 53 | + $messagesJson = FormatJson::encode( $messagesForJs ); |
55 | 54 | return 'mw.addMessages(' . $messagesJson . ');'; |
56 | 55 | } |
57 | 56 | |
— | — | @@ -69,5 +68,3 @@ |
70 | 69 | } |
71 | 70 | |
72 | 71 | } |
73 | | - |
74 | | -?> |