Robert Vogel has uploaded a new change for review.

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

Change subject: BSMassEditBase: Fix for NULL content
......................................................................

BSMassEditBase: Fix for NULL content

NEEDS CHERRY-PICK TO MASTER

Change-Id: I9b7c4a126f996df7715800a96bd4e09dd4ad4a4f
---
M maintenance/BSMassEditBase.php
1 file changed, 6 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/33/306333/1

diff --git a/maintenance/BSMassEditBase.php b/maintenance/BSMassEditBase.php
index 27065dd..5829fb4 100644
--- a/maintenance/BSMassEditBase.php
+++ b/maintenance/BSMassEditBase.php
@@ -84,7 +84,11 @@
         * @return Content
         */
        protected function modifyContent( $oContent, $oWikiPage ) {
-               $sTextContent = $oContent->getContentHandler()->getContentText( 
$oContent );
+               $sTextContent = '';
+               if( $oContent instanceof Content ) {
+                       $sTextContent = 
$oContent->getContentHandler()->getContentText( $oContent );
+               }
+
                $sNewTextContent = $this->modifyTextContent(
                        $sTextContent,
                        $oWikiPage
@@ -171,4 +175,4 @@
                return (bool)$this->getOption( 'verbose', false );
        }
 
-}
\ No newline at end of file
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b7c4a126f996df7715800a96bd4e09dd4ad4a4f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <[email protected]>

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

Reply via email to