From 55bc27c6095dfbd40f5fc099c7341a7b6eb54534 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 25 Aug 2008 03:08:56 +0000 Subject: [PATCH] Minor log-related changes for documentation and to support a potential extension --- includes/LogPage.php | 10 ++++++++++ includes/RecentChange.php | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index 647cc0115c..0bc9dd0ee0 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -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 */ diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 4daf6f8797..f5d64bd57d 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -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 ) { -- 2.20.1