(Bug 41574) Supply Title object to Revision if possible.
[lhc/web/wiklou.git] / includes / Title.php
index 00fdc3a..b484045 100644 (file)
@@ -3816,6 +3816,7 @@ class Title {
                        $newid = $redirectArticle->insertOn( $dbw );
                        if ( $newid ) { // sanity
                                $redirectRevision = new Revision( array(
+                                       'title'   => $this, // for determining the default content model
                                        'page'    => $newid,
                                        'comment' => $comment,
                                        'content'    => $redirectContent ) );