Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix $text returning null within internalParse #37

Merged
merged 1 commit into from Jun 3, 2021

Conversation

paladox
Copy link
Contributor

@paladox paladox commented Oct 28, 2020

We don't use internalParse if $text returns null.

Otherwise this causes an error in the Translate extension:

/w/index.php?title=Lucy_Stoole&veaction=edit&section=2&mobileaction=toggle_view_mobile TypeError from line 23 of /srv/mediawiki/w/extensions/Translate/src/PageTranslation/TranslatablePageParser.php: Argument 1 passed to MediaWiki\Extensions\Translate\PageTranslation\TranslatablePageParser::containsMarkup() must be of the type string, null given, called in /srv/mediawiki/w/extensions/Translate/tag/PageTranslationHooks.php on line 50

We don't use internalParse if $text returns null.

Otherwise this causes an error in the Translate extension:

 /w/index.php?title=Lucy_Stoole&veaction=edit&section=2&mobileaction=toggle_view_mobile   TypeError from line 23 of /srv/mediawiki/w/extensions/Translate/src/PageTranslation/TranslatablePageParser.php: Argument 1 passed to MediaWiki\Extensions\Translate\PageTranslation\TranslatablePageParser::containsMarkup() must be of the type string, null given, called in /srv/mediawiki/w/extensions/Translate/tag/PageTranslationHooks.php on line 50
@Universal-Omega
Copy link
Contributor

@lkucharczyk mind merging this?

@lkucharczyk lkucharczyk merged commit ca9ad67 into lkucharczyk:master Jun 3, 2021
@paladox paladox deleted the patch-2 branch June 3, 2021 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants