Tim Starling
124cec8946
Better to clone $wgParser rather than use it, otherwise things like {{int:}} would be broken.
2006-07-03 11:17:27 +00:00
Tim Starling
8e452c22a7
Use $wgParser instead of constructing a new parser object. Constructing a new one is now more expensive than ever.
2006-07-03 11:08:02 +00:00
Tim Starling
2ff288720c
Various performance and initialisation issues:
...
* Made autoloader work for unserialize()
* Made XmlFunctions.php and HttpFunctions.php autoloadable modules, via Http:: and Xml::
* Made Image class autoloadable, global functions moved to ImageFunctions.php where they can be loaded on every invocation.
* Removed some unnecessary require_once() calls
* Deferred $wgValidSkinNames initialisation
* Fixed a couple of silly construct/initialise splits. My idea from C++ experience, bad practice in PHP.
* Deferred skin initialisation in ParserOptions
* Removed $wgMwRedir during an attempt to make MagicWord autoloadable. Didn't complete that, but removing the global is still the right direction.
2006-07-02 15:57:59 +00:00
Rotem Liss
f7062e6f48
Extension messages translation is now possible.
2006-06-30 20:46:54 +00:00
Tim Starling
adaf195148
Defer initialisation of the special page list, allow autoloading of the SpecialPage class. SpecialPage.php is not loaded for ordinary page views. Implemented some interfaces which allow special pages to do the same thing, although backwards compatibility is maintained. Old special page extensions will load SpecialPage during initialisation, so all extensions will have to be ported to get the full performance benefit.
2006-06-25 08:38:17 +00:00
Tim Starling
02547dac72
Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date.
2006-06-07 06:40:24 +00:00
Domas Mituzas
e6085d6e36
AutoLoad Revision
2006-06-06 10:56:46 +00:00
Brion Vibber
0a26267688
Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :)
2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104
Use AutoLoader to load classes:
...
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Brion Vibber
1f1b942c96
* (bug 6126) Allow fallback to customized primary language when user language
...
message contains '-'; fixes licenses selector on Commons configuration after
recent addition of the message to Messages.php
2006-05-31 08:05:38 +00:00
Domas Mituzas
00cb0d116b
MessageCachePHP: throw out stupid RE, use simple str_replace's
2006-05-29 05:49:03 +00:00
Domas Mituzas
71ffa3756a
Allow storing local message cache as PHP source instead of serialized array, this way opcode cache is enjoyed :-) Might be not that secure, so disabled by default.
2006-05-28 18:29:42 +00:00
Antoine Musso
7ebdb6de89
Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad)
2006-05-11 22:40:38 +00:00
Antoine Musso
bc14eb8045
Replacing var keyword with private / public as we now require PHP5.
2006-05-11 19:10:41 +00:00
Brion Vibber
4ff45a89d0
Remove yet more stray executable bits. The last, I hope.
2006-04-04 08:01:19 +00:00
Tim Starling
01a2998b95
preload hook
2006-02-11 11:41:46 +00:00
Domas Mituzas
0e2748f098
SIDEBAR CACHE WILL SURVIVE!!!!!!11111oneoneone
2006-01-14 22:13:43 +00:00
Brion Vibber
ece1fbdc76
Quick fix: revert cached sidebar
...
Breaks badly due to user language selection
2006-01-14 17:09:32 +00:00
Domas Mituzas
d170edc72f
the revert at will style commit: cached sidebar :-)
2006-01-13 23:57:02 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec
* s~ +$~~
2006-01-07 13:09:30 +00:00
Tim Starling
b071c6fc4d
Yes, really world writeable
2006-01-04 23:24:25 +00:00
Tim Starling
35a281ff88
suppress warnings from local message cache fopen()
2005-12-30 08:50:59 +00:00
Antoine Musso
2ca68a256d
Clean up unused globals!
2005-12-04 18:27:59 +00:00
Ævar Arnfjörð Bjarmason
cb0a54af65
* Accessor/Mutator for $mDisableTransform, should all be merged into one with
...
wfSetVar() but I'm too lazy.
2005-11-28 01:14:12 +00:00
Tim Starling
6d82fa2f15
Added local message cache feature ($wgLocalMessageCache), to reduce bandwidth requirements to the memcached server.
2005-11-08 11:54:04 +00:00
Brion Vibber
219094eb01
Committing various live hacks from Wikimedia servers
2005-10-22 20:52:30 +00:00
Tim Starling
ce9d5692f1
Workaround for memcachedism
2005-09-11 17:33:25 +00:00
Tim Starling
5dd3b4903f
* Negative caching for the MediaWiki namespace. This is especially important when the user language is different to the content language.
...
* Allow messages to be blank, without them being considered missing
2005-09-11 14:50:47 +00:00
Tim Starling
fbeef2d0fb
respect $useDB
2005-08-14 07:21:43 +00:00
Brion Vibber
1960085c1a
* Fix Special:Allmessages under PHP 5
2005-07-31 00:25:55 +00:00
Ævar Arnfjörð Bjarmason
fcaddb96af
* Using addMessage() inside addMessages() instead of modifying
...
mExtensionMessages directly
2005-07-22 20:35:08 +00:00
River Tarnell
291c848de6
try a different way of handling the message cache
2005-07-07 03:08:58 +00:00
Ævar Arnfjörð Bjarmason
ed9232300b
* Documented
2005-06-26 15:30:50 +00:00
Tim Starling
6d7456c82c
less debug log spam
2005-05-28 11:07:55 +00:00
Tim Starling
4b390e9c9b
fixed potential XSS vulnerability
2005-05-14 05:42:29 +00:00
Domas Mituzas
83514a73a5
revert my cruft regarding incremental message cache building, it targetted wrong trouble in wrong path anyway
2005-05-04 19:24:10 +00:00
Ævar Arnfjörð Bjarmason
273671cf32
Adding cache related stuff to a new 'Cache' subpackage
2005-04-12 01:29:21 +00:00
Brion Vibber
0b86f637f2
Decouple revision.rev_id from text.old_id
...
* This will allow the backend text storage to use different id numbers
* Revisions noting metadata changes can be added to history without duplicating text
(implemented for page move)
This changes the revision table schema and requires running update.php
or maintenance/archives/patch-rev_text_id.sql on existing test wikis.
PostgreSQL table defs are still not in sync, so not updated.
2005-03-28 10:47:12 +00:00
Brion Vibber
3f7fe13247
Use Revision for individual message loads; not using it for bulk load just now; need to modify to do bulk loads efficiently
2005-03-19 10:40:41 +00:00
Brion Vibber
63c344e80c
For custom messages, fall back to the default language's db messages
2005-03-13 11:50:54 +00:00
Brion Vibber
41470111f1
* Reduce message cache outage recovery delay from 1 day to 5 minutes
2005-03-08 02:53:09 +00:00
Antoine Musso
2104f62734
fix phpdoc comment
2005-01-27 19:51:47 +00:00
Zheng Zhu
12c4d6f977
Allower zh: users to customize the Traditional/Simplified conversion tables. From REL1_4.
2004-12-29 01:07:43 +00:00
Brion Vibber
be2f51ae42
Merge capitallinks message fixes from REL1_4
2004-12-22 07:28:11 +00:00
Brion Vibber
2b1127fe90
Start splitting back-end functions from the Article user-interface class.
...
Fix Special:Export for new schema.
2004-12-19 12:21:29 +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
d3867d1ae8
* Fix message page caching behavior when $wgCapitalLinks is turned off
...
after installation and the wiki is subsequently upgraded
2004-12-18 08:11:32 +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
Brion Vibber
a7004b90e9
(bug 1039) mCache may not be an array if cache failures are happening, so check before searching it
2004-12-08 17:43:09 +00:00