Merge "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git] / includes / specials / SpecialNewpages.php
index ede4898..edfaa7c 100644 (file)
@@ -294,12 +294,12 @@ class SpecialNewpages extends IncludableSpecialPage {
        }
 
        /**
-        * @param stdClass $row Result row from recent changes
+        * @param stdClass $result Result row from recent changes
         * @return Revision|bool
         */
        protected function revisionFromRcResult( stdClass $result ) {
                return new Revision( [
-                       'comment' => $result->rc_comment,
+                       'comment' => CommentStore::newKey( 'rc_comment' )->getComment( $result )->text,
                        'deleted' => $result->rc_deleted,
                        'user_text' => $result->rc_user_text,
                        'user' => $result->rc_user,