* (bug 23276) Add hook to Special:NewPages to modify query
[lhc/web/wiklou.git] / includes / Revision.php
index cbf5625..31814fe 100644 (file)
@@ -601,6 +601,7 @@ class Revision {
        /**
         * Alias for getText(Revision::FOR_THIS_USER)
         *
+        * @deprecated
         * @return String
         */
        public function revText() {
@@ -835,6 +836,8 @@ class Revision {
                        $this->mTextId = $dbw->insertId();
                }
 
+               if ( $this->mComment === null ) $this->mComment = "";
+
                # Record the edit in revisions
                $rev_id = isset( $this->mId )
                        ? $this->mId