Commit graph

116 commits

Author SHA1 Message Date
Jens Frank
22da0bbfde Only include ParserXML when it is being used 2005-01-27 21:46:04 +00:00
Brion Vibber
0defdc6a3e * Skip message cache initialization on raw page view (quick hack)
The MediaWiki:Sitenotice hack as currently written forces message cache initiali
zation early in Setup.php. This adds up to 30% to the runtime on raw page views
and cache hits where no skin output has to be made, and dynamic CSS means we've got a fair amount of raw page views.
2005-01-18 10:16:55 +00:00
Tim Starling
829300bf0a fix for script execution vulnerability 2005-01-17 08:40:08 +00:00
Tim Starling
8844628487 Minor load balancing improvements 2005-01-15 10:11:45 +00:00
Jens Frank
67b0cf6906 Don't load user object from DB when in command line mode. DB might not yet exist 2005-01-15 07:28:33 +00:00
River Tarnell
fe586bbfc2 wgSquidServersNoPurge 2005-01-12 22:45:39 +00:00
Tim Starling
e1b5e3f57f porting site notice feature from REL1_3A 2004-12-23 09:12:58 +00:00
Brion Vibber
64ac6b8e77 Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
* Page moves/overwrites are a little iffy
* Compression might not be working right
* Profit!
2004-12-19 08:00:50 +00:00
Brion Vibber
798270581d (bug 454) Merge e-notif 2.00
From http://bugzilla.wikipedia.org/attachment.cgi?id=171&action=view
and extra files from http://www.tgries.de/mw/cvs15+enea200-minus-cvs.tgz

Undid a couple minor bits like the broken changing of minoreditletter.
Have not yet made general corrections/reworkings. Since this changes
the user and watchlist tables, you must run the updaters (installer or
update.php) on an existing database.
2004-12-18 03:47:11 +00:00
Brion Vibber
9169001980 * Fix language selection for upgraded accounts [merge from 1.4] 2004-12-11 09:57:58 +00:00
Brion Vibber
9a2a36ce5e * Defer message cache initialization, shaving a few ms off file cache hits 2004-12-09 05:51:20 +00:00
Zheng Zhu
7bee69578c more fixes for languages with no language files; allow UI customization for all languages. 2004-12-07 20:22:22 +00:00
Zheng Zhu
285d1dc09b fix typo 2004-11-29 15:24:02 +00:00
Tim Starling
5de9529eb1 made connection errors work again 2004-11-29 12:36:43 +00:00
Evan Prodromou
80d9f05b37 Add a system of hooks to allow third-party code to run before, after, or
instead of -- MediaWiki code for particular events (article rollback,
user ban, etc.). Framework is in place; hooks are not yet in place
in the mainline code.
2004-11-27 21:43:06 +00:00
Brion Vibber
c7620a7106 Let the parser cache use the objectcache table if memcached isn't set up,
and enable it by default. This provides significant speedups on medium
to long pages, though for busier sites the garbage collection probably
should be adjusted.
2004-11-22 01:16:44 +00:00
Brion Vibber
f5a1ac6798 Experimental authentication plugin interface. Will require a little bit more work to nail down all requirements. 2004-11-16 05:28:47 +00:00
Brion Vibber
98e82e9c60 Fix opening of session for users visiting with saved password token 2004-11-15 12:54:45 +00:00
Magnus Manske
a0d7248685 XML parser XHTML output 2004-11-03 14:00:08 +00:00
Tim Starling
7d1442e76f Backporting concatenated gzip history compression from SCHEMA_WORK. Also made a few tweaks to the compression script, mainly to make it faster for the purposes of a testing sequence I'm currently running on it. Will report to wikitech-l once testing is done. 2004-10-30 14:39:40 +00:00
Jens Frank
8b44e2c9d4 Add $IP to list of globals, since it is undefined otherwise 2004-10-24 08:29:34 +00:00
Tim Starling
1aa60b1361 Fixing multiple-inclusion problems 2004-10-24 02:13:00 +00:00
Tim Starling
4f4cdf87a3 rm obsolete global 2004-10-23 08:24:24 +00:00
Tim Starling
65c32390e9 comments 2004-09-26 13:41:21 +00:00
Tim Starling
91cf173f4a More informative error message for when the user forgot to move LocalSettings.php. Moved recently-added setup code from index.php to Setup.php where it's meant to be. index.php isn't the only entry point! 2004-09-26 10:41:48 +00:00
Brion Vibber
5537c5b85e Avoid gratuitously breaking configurations: continue to use
$wgLanguageCode in LocalSettings.php, and pass that value on
to $wgContLanguageCode internally.
2004-09-25 10:38:34 +00:00
Brion Vibber
869024bcb4 Adjust some spacing 2004-09-25 10:31:42 +00:00
Brion Vibber
d586617605 Change LanguageEn to be UTF-8 by default. This fixes the problem with
language selection destroying non-ASCII characters when English was selected.
2004-09-25 10:08:42 +00:00
Zheng Zhu
ada3997051 first attempt to support multiple language variants in the MediaWiki: namespace. 2004-09-25 04:15:47 +00:00
Zheng Zhu
32c223e2a1 removed caching of UI messages; it does not make sense, after all. 2004-09-25 02:23:04 +00:00
Zheng Zhu
f84493db51 First batch of files modified to switch wgLang to wgContLang. 2004-09-24 13:14:52 +00:00
Zheng Zhu
f30cb1cb19 updated warning about the UI switching code. 2004-09-24 00:49:00 +00:00
Zheng Zhu
6d10e85a52 Changed installation code so that wgContLanguageCode is set, replacing wgLanguageCode. 2004-09-24 00:34:13 +00:00
Zheng Zhu
9b826b9bf7 passing the language object in as parameter when initializing the message cache 2004-09-24 00:09:42 +00:00
Antoine Musso
be32b5b23f fix php notices about call-time by reference 2004-09-22 22:03:24 +00:00
Brion Vibber
36281e4c45 If $_SERVER['REMOTE_ADDR'] is not set, use 127.0.0.1 for $wgIP.
This avoids an E_NOTIFY-level warning and avoids having the empty
string set for the IP when running from CLI.
2004-09-22 11:39:30 +00:00
Zheng Zhu
ca7619c81c made some more wfMsg() to wfMsgForContent changes 2004-09-22 04:09:31 +00:00
Zheng Zhu
cc632696ba Adding a wgContLang object to handle message translation for the content of the site; wgLang should be used exclusively for UI messages. 2004-09-22 03:32:56 +00:00
Wil Mahan
b446574011 Bug 506: use $_SERVER[] instead of getenv() because the latter doesn't work
on IIS in ISAPI mode.
2004-09-20 21:53:21 +00:00
Antoine Musso
f8c9827902 Patch to only load $msgAllMessages instead of replacing the language object.
It's slow as the language object constructor is called twice.
See: http://bugzilla.wikipedia.org/show_bug.cgi?id=184
2004-09-08 13:32:13 +00:00
Brion Vibber
7c8905fa12 Add $wgUserLanguages array to specify which languages users are allowed
to select for the user interface. If this is left at the default empty
array the selection is disabled.

Currently the language selection is broken and will fail for many
cases, using bogus namespaces and probably corrupting your database
with bogus links, search index updates, and more.
2004-09-08 07:35:00 +00:00
Antoine Musso
f62712647b Registered user can set their own language for the interface. See http://bugzilla.wikipedia.org/show_bug.cgi?id=184 2004-09-08 03:39:32 +00:00
Tim Starling
a7e4f89cb4 Stub language file for zh-tw, changing Setup.php and Language.php to allow for languages with hyphens in their code 2004-09-05 06:17:37 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Jens Frank
85bfd4f375 ENH#169: Provide plugin interface for skins. See also module "sampleskin" in extensions. 2004-08-27 05:23:52 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
Tim Starling
bcb4f2c046 New feature: Turck MMCache shared memory as a lightweight, windows-compatible replacement for memcached 2004-08-21 13:59:48 +00:00
Brion Vibber
2a09429bac Only load memcached-client.php if we're really using it. Saves about 120kb memory when off. 2004-08-21 10:04:30 +00:00
Brion Vibber
dde3967d28 Don't include SearchEngine.php when it's not used. Saves about 180k of memory at runtime. 2004-08-21 09:51:01 +00:00