AutoLoad RecentChange
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 6 Jun 2006 11:44:18 +0000 (11:44 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 6 Jun 2006 11:44:18 +0000 (11:44 +0000)
includes/Article.php
includes/ChangesList.php
includes/LogPage.php

index e8aac58..9a729fb 100644 (file)
@@ -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' ) );
index 59c410f..a34b496 100644 (file)
@@ -7,7 +7,6 @@
  * - recent changes
  */
 
-require_once("RecentChange.php");
 /**
  * @todo document
  * @package MediaWiki
index c3b2367..753c1dc 100644 (file)
@@ -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 );
                }