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
Brion Vibber
d64197636f
Don't load DifferenceEngine.php when not needed. This saves 200-300kb of ram.
2004-08-21 09:32:34 +00:00
Tim Starling
5698c6bcc7
Allowed post-parse link cache to be used for update as well as page view. This involves changes to Article::showArticle() and maintenance/refreshLinks.inc. Fixed various bugs that I noticed along the way. Added an option to recover the old 1.3.x behaviour, for profiling and debugging.
2004-08-14 13:34:57 +00:00
Tim Starling
cd2e8170d2
Ahh, so that's what that does
2004-08-12 06:54:58 +00:00
Brion Vibber
62e98ad47c
Suppress some more warnings on separate execution of files. Shouldn't
...
be anything exploitable, it's just annoying.
2004-08-06 22:30:47 +00:00
Tim Starling
1773cd1e76
* Introducing bit field for database parameters
...
** Database constructor calling sequence, and Database::newFromParams()
** Including flags in the server initialisation structs
** Support for setting appropriate flags from legacy globals in Setup.php
** Moved some defines to Define.php so that they can be used in LocalSettings.php, most importantly the bit field constants
* Changes related to post-parse link colouring
** Turn the link cache back on when using it for updating the links table
** No longer need to call preFill() on page view
* Better synchronisation of slave servers
** Rearranged getConnection()
** System for beginning and committing transactions when multiple connections are open
** wfAbruptExit() commits transactions, wfErrorExit() does not. Various functions changed to use wfErrorAbort()
* Allowed reporting of database errors during deferred updates by moving them above output()
2004-07-24 07:24:04 +00:00
Tim Starling
ac549401d4
* Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
...
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa
OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature.
2004-07-10 03:09:26 +00:00
Antoine Musso
232659747d
removing useless comment
2004-06-17 16:52:54 +00:00
Antoine Musso
5928a9238b
EXPERIMENTAL: Stop requiring skin classes we do not use. Save about 210KB memory for a monobook user, should save more when user use standard.
2004-06-17 16:31:57 +00:00
Tim Starling
b5ef8d221b
Bringing the load balancer to the main branch. Still doesn't do much. I needed a DB connection cache for my Article.php alterations, which LoadBalancer provides.
2004-06-15 15:00:54 +00:00
Antoine Musso
16a74059bd
recommiting specialpages loading fix as the BoardVote extension as now been fixed
2004-06-12 01:31:00 +00:00
Brion Vibber
e96217fc1c
Undo change that stopped Wikipedia from running at all
2004-06-11 23:29:56 +00:00
Antoine Musso
82b207df94
do not instant Special* objects if user is not requesting a special page (save memory / cpu time)
2004-06-11 21:13:51 +00:00
Brion Vibber
9a78bae429
Converted remaining latin-1 localizations to UTF-8 (da/de/es/nl/sv).
...
For compatibility with existing installations, a latin-1 proxy language
module can be activated by setting $wgUseLatin1 = true; which will convert
messages to Latin-1 and use the Latin-1 support code as necessary.
2004-06-11 02:47:41 +00:00
Antoine Musso
c92a392572
double quotes to single quotes :o)
2004-06-09 01:25:31 +00:00
Antoine Musso
34efa448f5
possible performance enhancement
2004-06-08 02:32:56 +00:00
Tim Starling
876e7e5188
profiling correction
2004-06-06 14:05:07 +00:00
Tim Starling
74dc9fd67a
More detail in profiling data
2004-06-04 02:44:58 +00:00
Tim Starling
1da9734e6c
Fixed site notice for monobook, displayed site notice for board vote
2004-05-31 08:43:36 +00:00
Tim Starling
e3676a470c
Introducing special page modular extensions, making the board vote special page the first of these.
...
* Moving common special page handling to SpecialPage.php
* Special page lists in the language classes are obsolete, replaced by the list in SpecialPage.php
* Special:Specialpages uses the standard page titles wfMsg(pagename) instead of the description list previously contained in the $wgSpecialPagesEn arrays
* Ability to add custom messages to the MessageCache. Overridable by the MediaWiki namespace.
* Moving board vote functionality from includes/SpecialBoardvote.php to extensions/BoardVote.php
2004-05-15 03:36:39 +00:00