Minor log-related changes for documentation and to support a potential extension
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 25 Aug 2008 03:08:56 +0000 (03:08 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 25 Aug 2008 03:08:56 +0000 (03:08 +0000)
includes/LogPage.php
includes/RecentChange.php

index 647cc01..0bc9dd0 100644 (file)
@@ -89,6 +89,9 @@ class LogPage {
                return true;
        }
 
+       /**
+        * Get the RC comment from the last addEntry() call
+        */
        public function getRcComment() {
                $rcComment = $this->actionText;
                if( '' != $this->comment ) {
@@ -100,6 +103,13 @@ class LogPage {
                return $rcComment;
        }
 
+       /**
+        * Get the comment from the last addEntry() call
+        */
+       public function getComment() {
+               return $this->comment;
+       }
+
        /**
         * @static
         */
index 4daf6f8..f5d64bd 100644 (file)
@@ -431,7 +431,6 @@ class RecentChange
                RecentChange::notifyMove( $timestamp, $oldTitle, $newTitle, $user, $comment, $ip, true );
        }
 
-       # A log entry is different to an edit in that previous revisions are not kept
        public static function notifyLog( $timestamp, &$title, &$user, $actionComment, $ip='',
           $type, $action, $target, $logComment, $params, $newId=0 )
        {