From b08f2b4100a1e6e0674093c545f43d35098b963e Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 6 Jun 2006 11:44:18 +0000 Subject: [PATCH] AutoLoad RecentChange --- includes/Article.php | 3 --- includes/ChangesList.php | 1 - includes/LogPage.php | 1 - 3 files changed, 5 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index e8aac58d2e..9a729fbbed 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1189,7 +1189,6 @@ class Article { Article::onArticleCreate( $this->mTitle ); if(!$suppressRC) { - require_once( 'RecentChange.php' ); $rcid = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $wgUser, $summary, 'default', '', strlen( $text ), $revisionId ); # Mark as patrolled if the user can and has the option set @@ -1338,7 +1337,6 @@ class Article { $dbw->rollback(); } else { # Update recentchanges and purge cache and whatnot - require_once( 'RecentChange.php' ); $bot = (int)($wgUser->isBot() || $forceBot); $rcid = RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $wgUser, $summary, $lastRevision, $this->getTimestamp(), $bot, '', $oldsize, $newsize, @@ -1462,7 +1460,6 @@ class Article { $rcid = $wgRequest->getVal( 'rcid' ); if ( !is_null ( $rcid ) ) { if( wfRunHooks( 'MarkPatrolled', array( &$rcid, &$wgUser, false ) ) ) { - require_once( 'RecentChange.php' ); RecentChange::markPatrolled( $rcid ); wfRunHooks( 'MarkPatrolledComplete', array( &$rcid, &$wgUser, false ) ); $wgOut->setPagetitle( wfMsg( 'markedaspatrolled' ) ); diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 59c410fe98..a34b496683 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -7,7 +7,6 @@ * - recent changes */ -require_once("RecentChange.php"); /** * @todo document * @package MediaWiki diff --git a/includes/LogPage.php b/includes/LogPage.php index c3b236762a..753c1dc47b 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -83,7 +83,6 @@ class LogPage { $rcComment .= ': ' . $this->comment; } - require_once( 'RecentChange.php' ); RecentChange::notifyLog( $now, $titleObj, $wgUser, $rcComment, '', $this->type, $this->action, $this->target, $this->comment, $this->params ); } -- 2.20.1