aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/Article.php2
-rw-r--r--includes/CacheManager.php2
-rw-r--r--includes/Database.php4
-rw-r--r--includes/DatabaseFunctions.php2
-rw-r--r--includes/GlobalFunctions.php8
-rw-r--r--includes/OutputPage.php2
-rw-r--r--includes/Parser.php6
-rw-r--r--includes/QueryPage.php4
-rw-r--r--includes/Setup.php46
-rw-r--r--includes/Skin.php14
-rw-r--r--includes/SpecialAncientpages.php2
-rw-r--r--includes/SpecialDeadendpages.php2
-rw-r--r--includes/SpecialLonelypages.php2
-rw-r--r--includes/SpecialLongpages.php2
-rw-r--r--includes/SpecialMakesysop.php2
-rw-r--r--includes/SpecialMovepage.php2
-rw-r--r--includes/SpecialNewpages.php2
-rw-r--r--includes/SpecialPopularpages.php2
-rw-r--r--includes/SpecialRecentchanges.php2
-rw-r--r--includes/SpecialRecentchangeslinked.php2
-rw-r--r--includes/SpecialShortpages.php2
-rw-r--r--includes/SpecialWantedpages.php2
-rw-r--r--includes/SpecialWatchlist.php4
-rw-r--r--includes/UpdateClasses.php14
-rw-r--r--includes/User.php4
-rw-r--r--includes/UserMailer.php2
-rw-r--r--includes/killthread.php4
27 files changed, 71 insertions, 71 deletions
diff --git a/includes/Article.php b/includes/Article.php
index ab8c752e019e..16101eca27c8 100644
--- a/includes/Article.php
+++ b/includes/Article.php
@@ -5,7 +5,7 @@
# Note: edit user interface and cache support functions have been
# moved to separate EditPage and CacheManager classes.
-include_once( "CacheManager.php" );
+require_once( "CacheManager.php" );
class Article {
/* private */ var $mContent, $mContentLoaded;
diff --git a/includes/CacheManager.php b/includes/CacheManager.php
index 09f9a80bafb6..5ba6ec7318e4 100644
--- a/includes/CacheManager.php
+++ b/includes/CacheManager.php
@@ -11,7 +11,7 @@
# $wgFileCacheDirectory
# $wgUseGzip
-include_once( "Title.php" );
+require_once( "Title.php" );
class CacheManager {
var $mTitle, $mFileCache;
diff --git a/includes/Database.php b/includes/Database.php
index cada7e39985f..d84625492f8e 100644
--- a/includes/Database.php
+++ b/includes/Database.php
@@ -1,6 +1,6 @@
<?php
-include_once( "FulltextStoplist.php" );
-include_once( "CacheManager.php" );
+require_once( "FulltextStoplist.php" );
+require_once( "CacheManager.php" );
define( "DB_READ", -1 );
define( "DB_WRITE", -2 );
diff --git a/includes/DatabaseFunctions.php b/includes/DatabaseFunctions.php
index c1452c7dc7eb..90bb40f19370 100644
--- a/includes/DatabaseFunctions.php
+++ b/includes/DatabaseFunctions.php
@@ -11,7 +11,7 @@
# not access the $wgDatabase variable directly unless
# you intend to set it. Use wfGetDB().
-include_once( "Database.php" );
+require_once( "Database.php" );
# Query the database
# $db: DB_READ = -1 read from slave (or only server)
diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php
index e52d688677f8..d78d2637225d 100644
--- a/includes/GlobalFunctions.php
+++ b/includes/GlobalFunctions.php
@@ -5,9 +5,9 @@ $wgNumberOfArticles = -1; # Unset
$wgTotalViews = -1;
$wgTotalEdits = -1;
-include_once( "DatabaseFunctions.php" );
-include_once( "UpdateClasses.php" );
-include_once( "LogPage.php" );
+require_once( "DatabaseFunctions.php" );
+require_once( "UpdateClasses.php" );
+require_once( "LogPage.php" );
/*
* Compatibility functions
@@ -296,7 +296,7 @@ function wfSpecialPage()
$wgOut->setPageTitle( wfMsg( strtolower( $wgTitle->getText() ) ) );
$inc = "Special" . $t . ".php";
- include_once( $inc );
+ require_once( $inc );
$call = "wfSpecial" . $t;
$call( $par );
} else if ( array_key_exists( $t, $sysopSP ) ) {
diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index f344fe404cd1..e859ed222996 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -1,7 +1,7 @@
<?php
# See design.doc
-if($wgUseTeX) include_once( "Math.php" );
+if($wgUseTeX) require_once( "Math.php" );
class OutputPage {
var $mHeaders, $mCookies, $mMetatags, $mKeywords;
diff --git a/includes/Parser.php b/includes/Parser.php
index 898faf0ffd5a..54a6528b3adc 100644
--- a/includes/Parser.php
+++ b/includes/Parser.php
@@ -1,12 +1,12 @@
<?php
-include_once('Tokenizer.php');
+require_once('Tokenizer.php');
if( $GLOBALS['wgUseWikiHiero'] ){
- include_once('wikihiero.php');
+ require_once('wikihiero.php');
}
if( $GLOBALS['wgUseTimeline'] ){
- include_once('extensions/timeline/Timeline.php');
+ require_once('extensions/timeline/Timeline.php');
}
# PHP Parser
diff --git a/includes/QueryPage.php b/includes/QueryPage.php
index da0aaa017e97..d0f250e7aea5 100644
--- a/includes/QueryPage.php
+++ b/includes/QueryPage.php
@@ -1,7 +1,7 @@
<?php
-include_once ( "LogPage.php" ) ;
-include_once ( "Feed.php" );
+require_once ( "LogPage.php" ) ;
+require_once ( "Feed.php" );
# This is a class for doing query pages; since they're almost all the same,
# we factor out some of the functionality into a superclass, and let
diff --git a/includes/Setup.php b/includes/Setup.php
index cb138720292b..6a55446a913f 100644
--- a/includes/Setup.php
+++ b/includes/Setup.php
@@ -11,7 +11,7 @@ if( !isset( $wgProfiling ) )
$wgProfiling = false;
if ( $wgProfiling and (0 == rand() % $wgProfileSampleRate ) ) {
- include_once( "Profiling.php" );
+ require_once( "Profiling.php" );
} else {
function wfProfileIn( $fn ) {}
function wfProfileOut( $fn = "" ) {}
@@ -39,25 +39,25 @@ wfProfileIn( $fname );
global $wgUseDynamicDates;
wfProfileIn( "$fname-includes" );
-include_once( "GlobalFunctions.php" );
-include_once( "Namespace.php" );
-include_once( "RecentChange.php" );
-include_once( "Skin.php" );
-include_once( "OutputPage.php" );
-include_once( "User.php" );
-include_once( "LinkCache.php" );
-include_once( "Title.php" );
-include_once( "Article.php" );
-include_once( "MagicWord.php" );
-include_once( "memcached-client.php" );
-include_once( "Block.php" );
-include_once( "SearchEngine.php" );
-include_once( "DifferenceEngine.php" );
-include_once( "MessageCache.php" );
-include_once( "BlockCache.php" );
-include_once( "Parser.php" );
-include_once( "ParserCache.php" );
-include_once( "WebRequest.php" );
+require_once( "GlobalFunctions.php" );
+require_once( "Namespace.php" );
+require_once( "RecentChange.php" );
+require_once( "Skin.php" );
+require_once( "OutputPage.php" );
+require_once( "User.php" );
+require_once( "LinkCache.php" );
+require_once( "Title.php" );
+require_once( "Article.php" );
+require_once( "MagicWord.php" );
+require_once( "memcached-client.php" );
+require_once( "Block.php" );
+require_once( "SearchEngine.php" );
+require_once( "DifferenceEngine.php" );
+require_once( "MessageCache.php" );
+require_once( "BlockCache.php" );
+require_once( "Parser.php" );
+require_once( "ParserCache.php" );
+require_once( "WebRequest.php" );
$wgRequest = new WebRequest();
@@ -135,13 +135,13 @@ if( $wgUseMemCached ) {
wfProfileOut( "$fname-memcached" );
wfProfileIn( "$fname-misc" );
-include_once( "Language.php" );
+require_once( "Language.php" );
$wgMessageCache = new MessageCache;
$wgLangClass = "Language" . ucfirst( $wgLanguageCode );
if( ! class_exists( $wgLangClass ) || ($wgLanguageCode == "en" && strcasecmp( $wgInputEncoding, "utf-8" ) == 0 ) ) {
- include_once( "LanguageUtf8.php" );
+ require_once( "LanguageUtf8.php" );
$wgLangClass = "LanguageUtf8";
}
@@ -155,7 +155,7 @@ $wgOut = new OutputPage();
wfDebug( "\n\n" );
if ( $wgUseDynamicDates ) {
- include_once( "DateFormatter.php" );
+ require_once( "DateFormatter.php" );
global $wgDateFormatter;
$wgDateFormatter = new DateFormatter;
}
diff --git a/includes/Skin.php b/includes/Skin.php
index c4686d12d50b..2720affbeede 100644
--- a/includes/Skin.php
+++ b/includes/Skin.php
@@ -1,7 +1,7 @@
<?php
-include_once( "Feed.php" );
-include_once( "Image.php" );
+require_once( "Feed.php" );
+require_once( "Image.php" );
# See skin.doc
@@ -22,7 +22,7 @@ if( $wgUsePHPTal ) {
#$wgValidSkinNames['monobookminimal'] = "MonoBookMinimal";
}
-include_once( "RecentChange.php" );
+require_once( "RecentChange.php" );
class RCCacheEntry extends RecentChange
{
@@ -2644,12 +2644,12 @@ class Skin {
}
}
-include_once( "SkinStandard.php" );
-include_once( "SkinNostalgia.php" );
-include_once( "SkinCologneBlue.php" );
+require_once( "SkinStandard.php" );
+require_once( "SkinNostalgia.php" );
+require_once( "SkinCologneBlue.php" );
if( $wgUsePHPTal ) {
- include_once( "SkinPHPTal.php" );
+ require_once( "SkinPHPTal.php" );
}
diff --git a/includes/SpecialAncientpages.php b/includes/SpecialAncientpages.php
index 13c97b4c331a..1b9a897bba85 100644
--- a/includes/SpecialAncientpages.php
+++ b/includes/SpecialAncientpages.php
@@ -1,6 +1,6 @@
<?php
-include_once( "QueryPage.php" );
+require_once( "QueryPage.php" );
class AncientPagesPage extends QueryPage {
diff --git a/includes/SpecialDeadendpages.php b/includes/SpecialDeadendpages.php
index e30875f7df2b..0c392804b7d2 100644
--- a/includes/SpecialDeadendpages.php
+++ b/includes/SpecialDeadendpages.php
@@ -1,6 +1,6 @@
<?php
-include_once( "QueryPage.php" );
+require_once( "QueryPage.php" );
class DeadendPagesPage extends PageQueryPage {
diff --git a/includes/SpecialLonelypages.php b/includes/SpecialLonelypages.php
index 1397dbf34f92..bd5286414c6f 100644
--- a/includes/SpecialLonelypages.php
+++ b/includes/SpecialLonelypages.php
@@ -1,6 +1,6 @@
<?php
-include_once( "QueryPage.php" );
+require_once( "QueryPage.php" );
class LonelyPagesPage extends PageQueryPage {
diff --git a/includes/SpecialLongpages.php b/includes/SpecialLongpages.php
index 403801d2b23b..a02120ce0377 100644
--- a/includes/SpecialLongpages.php
+++ b/includes/SpecialLongpages.php
@@ -1,6 +1,6 @@
<?php
-include_once( "QueryPage.php" );
+require_once( "QueryPage.php" );
class LongPagesPage extends QueryPage {
diff --git a/includes/SpecialMakesysop.php b/includes/SpecialMakesysop.php
index f26f3c5c994c..653f06256e60 100644
--- a/includes/SpecialMakesysop.php
+++ b/includes/SpecialMakesysop.php
@@ -1,5 +1,5 @@
<?php
-include_once( "LinksUpdate.php" );
+require_once( "LinksUpdate.php" );
function wfSpecialMakesysop()
{
diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php
index 07ef62e15205..329c0d28cfbb 100644
--- a/includes/SpecialMovepage.php
+++ b/includes/SpecialMovepage.php
@@ -1,5 +1,5 @@
<?php
-include_once( "LinksUpdate.php" );
+require_once( "LinksUpdate.php" );
function wfSpecialMovepage()
{
diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php
index 4368d28829e0..b23bc91cb2ba 100644
--- a/includes/SpecialNewpages.php
+++ b/includes/SpecialNewpages.php
@@ -1,6 +1,6 @@
<?php
-include_once( "QueryPage.php" );
+require_once( "QueryPage.php" );
class NewPagesPage extends QueryPage {
diff --git a/includes/SpecialPopularpages.php b/includes/SpecialPopularpages.php
index 18dbb0d978bb..bed3b34289ca 100644
--- a/includes/SpecialPopularpages.php
+++ b/includes/SpecialPopularpages.php
@@ -1,6 +1,6 @@
<?php
-include_once( "QueryPage.php" );
+require_once( "QueryPage.php" );
class PopularPagesPage extends QueryPage {
diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php
index 9581b8c52dc6..127678528581 100644
--- a/includes/SpecialRecentchanges.php
+++ b/includes/SpecialRecentchanges.php
@@ -1,6 +1,6 @@
<?php
-include_once( "Feed.php" );
+require_once( "Feed.php" );
function wfSpecialRecentchanges( $par )
{
diff --git a/includes/SpecialRecentchangeslinked.php b/includes/SpecialRecentchangeslinked.php
index 8c2f3ff97429..88cd47827d91 100644
--- a/includes/SpecialRecentchangeslinked.php
+++ b/includes/SpecialRecentchangeslinked.php
@@ -1,5 +1,5 @@
<?php
-include_once( "SpecialRecentchanges.php" );
+require_once( "SpecialRecentchanges.php" );
function wfSpecialRecentchangeslinked( $par = NULL )
{
diff --git a/includes/SpecialShortpages.php b/includes/SpecialShortpages.php
index b9892772e68d..ae230239023f 100644
--- a/includes/SpecialShortpages.php
+++ b/includes/SpecialShortpages.php
@@ -1,6 +1,6 @@
<?php
-include_once("QueryPage.php");
+require_once("QueryPage.php");
class ShortPagesPage extends QueryPage {
diff --git a/includes/SpecialWantedpages.php b/includes/SpecialWantedpages.php
index 1a6e8a579914..b3f5f9a97c32 100644
--- a/includes/SpecialWantedpages.php
+++ b/includes/SpecialWantedpages.php
@@ -1,6 +1,6 @@
<?php
-include_once ( "QueryPage.php" ) ;
+require_once ( "QueryPage.php" ) ;
class WantedPagesPage extends QueryPage {
diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php
index c98cd5f60281..619dc38445f9 100644
--- a/includes/SpecialWatchlist.php
+++ b/includes/SpecialWatchlist.php
@@ -1,6 +1,6 @@
<?php
-include_once( "SpecialRecentchanges.php" );
-include_once( "WatchedItem.php" );
+require_once( "SpecialRecentchanges.php" );
+require_once( "WatchedItem.php" );
function wfSpecialWatchlist()
{
diff --git a/includes/UpdateClasses.php b/includes/UpdateClasses.php
index a04734c5c39f..442de3737721 100644
--- a/includes/UpdateClasses.php
+++ b/includes/UpdateClasses.php
@@ -1,11 +1,11 @@
<?php
# See deferred.doc
-include_once( "UserUpdate.php" );
-include_once( "ViewCountUpdate.php" );
-include_once( "SiteStatsUpdate.php" );
-include_once( "LinksUpdate.php" );
-include_once( "SearchUpdate.php" );
-include_once( "UserTalkUpdate.php" );
-include_once( "SquidUpdate.php" );
+require_once( "UserUpdate.php" );
+require_once( "ViewCountUpdate.php" );
+require_once( "SiteStatsUpdate.php" );
+require_once( "LinksUpdate.php" );
+require_once( "SearchUpdate.php" );
+require_once( "UserTalkUpdate.php" );
+require_once( "SquidUpdate.php" );
?>
diff --git a/includes/User.php b/includes/User.php
index b0a5afc85d6d..111bebff1a78 100644
--- a/includes/User.php
+++ b/includes/User.php
@@ -1,7 +1,7 @@
<?php
# See user.doc
-include_once( "WatchedItem.php" );
+require_once( "WatchedItem.php" );
class User {
/* private */ var $mId, $mName, $mPassword, $mEmail, $mNewtalk;
@@ -151,7 +151,7 @@ class User {
function SetupSession() {
global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain;
if( $wgSessionsInMemcached ) {
- include_once( "MemcachedSessions.php" );
+ require_once( "MemcachedSessions.php" );
}
session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain );
session_cache_limiter( "private, must-revalidate" );
diff --git a/includes/UserMailer.php b/includes/UserMailer.php
index f6097afcf88e..45e071c48808 100644
--- a/includes/UserMailer.php
+++ b/includes/UserMailer.php
@@ -12,7 +12,7 @@ function userMailer( $to, $from, $subject, $body )
if (is_array( $wgSMTP ))
{
- include_once( "Mail.php" );
+ require_once( "Mail.php" );
$timestamp = time();
diff --git a/includes/killthread.php b/includes/killthread.php
index d18bf9aadf0f..2598c6f75565 100644
--- a/includes/killthread.php
+++ b/includes/killthread.php
@@ -6,13 +6,13 @@ $wgCommandLineMode = true;
unset( $IP );
ini_set( "allow_url_fopen", 0 ); # For security...
-include_once( "./LocalSettings.php" );
+require_once( "./LocalSettings.php" );
# Windows requires ';' as separator, ':' for Unix
$sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
ini_set( "include_path", "$IP$sep$include_path" );
-include_once( "Setup.php" );
+require_once( "Setup.php" );
$wgTitle = Title::newFromText( wfMsg( "badtitle" ) );
$wgArticle = new Article($wgTitle);