Force lazy loading of text in Revision::getSerializedData()
[lhc/web/wiklou.git] / includes / Revision.php
index b3b971b..2bdc7c0 100644 (file)
@@ -996,6 +996,10 @@ class Revision implements IDBAccessObject {
         * @return String
         */
        public function getSerializedData() {
+               if ( is_null( $this->mText ) ) {
+                       $this->mText = $this->loadText();
+               }
+
                return $this->mText;
        }