mediawiki: Make retrieving list of supported languages robust
-
Invoke PHP command to retrieve the list instead of parsing PHP file. This fixes issue with regex not being generic enough to retrieve languages list using double quotes. Also make is much more robust to future formatting changes.
-
If there is an error in retrieving, which may happen due to future code changes, fall back to showing a safe list of languages instead of making the app unusable.
@nbenedek, please review if the changes are inline with the original ideas for the feature.