From: Tim Starling Date: Mon, 25 Aug 2008 03:08:56 +0000 (+0000) Subject: Minor log-related changes for documentation and to support a potential extension X-Git-Tag: 1.31.0-rc.0~45688 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=55bc27c6095dfbd40f5fc099c7341a7b6eb54534;p=lhc%2Fweb%2Fwiklou.git Minor log-related changes for documentation and to support a potential extension --- 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 ) {