Fix incorrect arguments to prepareContent() call in WikiPage
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 2 Jul 2018 11:54:41 +0000 (12:54 +0100)
committerGergő Tisza <gtisza@wikimedia.org>
Mon, 2 Jul 2018 14:46:13 +0000 (14:46 +0000)
Bug: T198483
Change-Id: I7115a9f8c7d5a6d84b77149fda266ad05ff3274d

includes/page/WikiPage.php

index c25ff35..261c954 100644 (file)
@@ -1935,7 +1935,7 @@ class WikiPage implements Page, IDBAccessObject {
                $updater = $this->getDerivedDataUpdater( $user, $revision, $slots );
 
                if ( !$updater->isUpdatePrepared() ) {
-                       $updater->prepareContent( $user, $slots, [], $useCache );
+                       $updater->prepareContent( $user, $slots, $useCache );
 
                        if ( $revision ) {
                                $updater->prepareUpdate( $revision );