Commit graph

197 commits

Author SHA1 Message Date
Tim Starling
0ade783ae2 Deferred loading of DateFormatter.php and IP.php. Standardised IP.php function naming style. 2006-07-14 17:02:49 +00:00
Tim Starling
8831c8e13d MagicWord initialisation deferred. 2006-07-14 16:36:35 +00:00
Tim Starling
3ea576aa25 Consolidated web initialisation code into includes/WebStart.php. Moved profiling setup to a hook file "StartProfiler.php", following Brion's suggestion to merge Wikimedia's early profiling patch into subversion. Renamed Profiling.php and logProfilingData(), removed unnecessary wfProfileClose() calls. 2006-07-14 05:35:31 +00:00
Antoine Musso
71fd92d760 Migrate IP related tools from ProxyTools.php to IP.php
and its own class of static functions
2006-07-12 18:33:21 +00:00
Brion Vibber
f1344b73c6 * (bug 6562) Removed unmaintained ParserXml.php for now 2006-07-07 06:04:07 +00:00
Rob Church
9131716360 * (bug 6504) Allow configuring session name with $wgSessionName 2006-07-04 04:20:14 +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
Tim Starling
d2b2d1e7eb Experimental: use absolute paths in require_once 2006-07-01 07:22:59 +00:00
Brion Vibber
908c51e127 Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
Greg Sabino Mullane
ef89ec541c Add concept of a distinct port separate from a server.
Add some functions to DatabasePostgres.php.
2006-06-27 15:37:35 +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
Domas Mituzas
9ed354c5c7 revert back to 14660 2006-06-08 15:12:26 +00:00
Domas Mituzas
7b8c86bdb2 AutoLoad OutputPage, HistoryBlob, Block, MessageCache, move $wgBlobCache to HistoryBlobStub static private. 2006-06-08 14:11:16 +00:00
Domas Mituzas
abd7248709 Autoload Linker, Skin.php, move $wgValidSkinNames to static private at Skin, use Skin::getSkinNames()... 2006-06-08 13:47:38 +00:00
Domas Mituzas
b9dbaffd29 move autoloading up :) 2006-06-08 13:27:11 +00:00
Domas Mituzas
9ff370792b woo, revert the revert, apc 3.0.8 seems to work with this :) 2006-06-08 13:08:22 +00:00
Domas Mituzas
01c5458779 revert r14636, private static arrays seem to crash APC on half of our boxen, will have to investigate (or ask nicely Tim to help there) 2006-06-07 13:58:51 +00:00
Domas Mituzas
d49e267925 autoload Profiling, ParserCache, WebRequest 2006-06-07 12:26:58 +00:00
Domas Mituzas
f8b70b6603 AutoLoad Title.php, move global cache arrays to static Title:: variables 2006-06-07 11:44:10 +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
Tim Starling
410986abf8 Some initial work on exceptions. More to follow. 2006-06-06 23:07:26 +00:00
Domas Mituzas
1aacbbf476 autoload WikiError 2006-06-06 11:51:31 +00:00
Domas Mituzas
b641266605 AutoLoad LinkCache & LinkBatch 2006-06-06 11:36:38 +00:00
Domas Mituzas
06e4640d8c AutoLoad Article 2006-06-06 11:29:23 +00:00
Domas Mituzas
4c31c13252 Welcome back AutoLoader, this time in small batches :-) 2006-06-06 09:50:01 +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
2fb7f4fdb2 To simplify the lives of extension developers, the logging type arrays can now be appended to directly by an extension setup function. It is no longer necessary to write four separate functions just to add a custom log type.
The old hooks for this are retained for backwards compatibility, but are deprecated.
2006-05-25 07:37:20 +00:00
Brion Vibber
ca311c2e4c * PersistentObject removed; it doesn't do anything and was broken besides.
All extensions using it have been corrected.
2006-04-12 08:32:54 +00:00
Brion Vibber
8b36a801ac Live fix: set $wgNodeName 2006-04-02 04:13:23 +00:00
Tim Starling
3e74cd1359 Allow cookies to be shared between multiple wikis with a shared user database. 2006-02-11 07:41:31 +00:00
Brion Vibber
b380b0a76a * Add ".deps.php" include-file preloaders for some dynamically-loaded
language and skin classes. Should help with the broken base-class
  problem under PHP 5 with APC as opcode cache. See details:
  http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html
2006-01-17 23:43:15 +00:00
Brion Vibber
6adf79ec39 * (bug 3990) Use existing session name if session.auto_start is on
Fixes checks for open sessions, such as the cookie warning on login.
  Patch by Zbigniew Braniecki.
2006-01-15 08:05:28 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Tim Starling
2f49de971c accidentally committed experimental code 2006-01-13 10:29:24 +00:00
Tim Starling
c0dbf45f72 require_once() makes about 20 syscalls in the process of checking if the file has been included before. Moving it outside the loop. 2006-01-13 09:31:51 +00:00
Brion Vibber
86f779f3e9 Temporarily removing Upgrader extension thingy
* including code from DefaultSettings is a no-no
* no release-notes entries for major changes?
* not following code formatting standards
* serial version numbers probably not reliable
* HEAD is our production code; maybe try this separately first?
2006-01-10 20:00:28 +00:00
Magnus Manske
65aa5bab1a New toy: Automatic database upgrades (deactivated by default)
Can create/upgrade database tables for MediaWiki and extensions based on internal version management.
For HOWTO see the beginning of include/Upgrader.php
2006-01-10 12:53:43 +00:00
Brion Vibber
26cc539cac * Skip loading of RecentChange.php except where needed
Moved constants to Define.php; removed unneeded includes until use of RecentChange:: in Article, Log, CheckUser
2006-01-09 21:09:33 +00:00
Tim Starling
3fc92e0c28 removed $wgParserCache, converted to a singleton 2006-01-05 04:26:52 +00:00
Tim Starling
f2a59db33f Removed $wgLinkCache, converted to a singleton. Removed obsolete cruft from LinkCache.php. 2006-01-05 02:05:53 +00:00
Tim Starling
d2adf83131 gave LinkBatch its own file 2006-01-04 23:53:51 +00:00
Tim Starling
837f8137ba Moved stub profiling functions to their own file 2006-01-04 23:17:35 +00:00
Domas Mituzas
b3f01f2070 check if wgProfiler is defined before checking if it is an object
define wfProfileIn/Out only if it was not defined before
2006-01-03 23:38:13 +00:00
Domas Mituzas
e6a511848a allow pre-started Profiler 2006-01-03 10:31:13 +00:00
Tim Starling
93202880e1 arrrggh suppressed fatal 2005-12-30 08:52:45 +00:00
Domas Mituzas
97414f12ee session statistics live patch 2005-12-26 13:08:06 +00:00
Domas Mituzas
214b9a8d40 * move $wgProfiler init to Setup.php
* allow specifying different profiler types
* add ProfilerSimple (that for now just builds in-memory profiling structure,
  may be extended to write it somewhere)
2005-12-24 13:41:05 +00:00
Ævar Arnfjörð Bjarmason
c89ebef38e * require_once 'PersistentObject.php' in the $wg(?:Skin|)ExtensionFunctions loops 2005-12-21 00:13:43 +00:00
Domas Mituzas
ed21293445 AutoAuthenticate hook for external User suppliers 2005-12-20 21:25:54 +00:00