Anomie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/233976

Change subject: Remove direct ParserOptions field access
......................................................................

Remove direct ParserOptions field access

We may be getting rid of the fields.

Bug: T110269
Change-Id: Ib58e8020ffffcc4cc14095c0d4210a2821ea5e2c
---
M Babel.class.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Babel 
refs/changes/76/233976/1

diff --git a/Babel.class.php b/Babel.class.php
index 36a50c9..cf8e897 100644
--- a/Babel.class.php
+++ b/Babel.class.php
@@ -40,7 +40,7 @@
 
                $content = '';
                $templateParameters = array(); // collects name=value 
parameters to be passed to wiki templates.
-               $createCategories = !$parser->mOptions->mIsPreview;
+               $createCategories = !$parser->mOptions->getIsPreview();
                foreach ( $parameters as $name ) {
                        if ( strpos( $name, '=' ) !== false ) {
                                $templateParameters[] = $name;

-- 
To view, visit https://gerrit.wikimedia.org/r/233976
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib58e8020ffffcc4cc14095c0d4210a2821ea5e2c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Babel
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to