Commit graph

24 commits

Author SHA1 Message Date
Tim Starling
3005679b0e * Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call.
* Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded. 
* Moved wfGetMimeMagic() to MimeMagic::singleton()
* Fixed a couple of __CLASS__.'::'.__FUNCTION__ things.
2006-10-03 13:00:52 +00:00
Tim Starling
3f80b41dc2 Added experimental history paging API, subject to change 2006-08-05 14:10:10 +00:00
Tim Starling
eac0376cdc s/Revision::MW_REV_DELETED/Revision::DELETED/, and introduced aliases for compatibility with 1.6. 2006-06-23 06:31:46 +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
Domas Mituzas
d8c04540b7 Move revision deletion constants into Revision:: 2006-06-06 10:54:23 +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
b120edb7ba * Suppress 7za output on dumpBackup
keeps appending crap to output which obscures other info
2006-04-30 03:58:19 +00:00
Brion Vibber
3c9cf267a1 * (bug 385) Installer support for PostgreSQL, fixes for PG compatibility
Applied from: http://bugzilla.wikimedia.org/attachment.cgi?id=1517&action=view
I haven't tested it with PG personally yet, but it doesn't appear to interfere with other functionality.
2006-04-12 08:15:28 +00:00
Brion Vibber
f2c29baf9f Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
Domas Mituzas
75cddfd8bf a) force to read page first (as order by page_id is done) -
probably it would be better to scan revision and order by rev_page, but that
    would require review of all possible uses of dump and special cases
   (as sometimes starting on page is more efficient)

b) use PRIMARY index for revision, as we read full row anyway
     (in InnoDB row data is clustered together with PK)
2006-03-26 10:24:12 +00:00
Magnus Manske
30b2813aea Special:Export contributor list back in (default:off)
Set $wgExportAllowListContributors=true to turn it on
2006-03-23 08:50:31 +00:00
Brion Vibber
6677824a0c Revert database-killing feature. 2006-03-22 21:55:07 +00:00
Magnus Manske
c3c7c9db08 Special:Export can now return a list of contributors per article, without having to
dump the entire history. It will not alter or slow exports unless specifically requested.
Note that export-0.3.xsd was slightly expanded for this; maybe we should move to 0.4?
2006-03-22 13:17:44 +00:00
Brion Vibber
103be1dda1 * Further work on rev_deleted; changed to a bitfield with several data-hiding
options. Not yet ready for production use; Special:Revisiondelete is
  incomplete, and the flags are not preserved across page deletion/undeletion.
  To try it; add the 'deleterevision' permission to a privileged group.
Also split some functions from GlobalFunctions to XmlFunctions.php, added
some convenience functions for building form controls, some more Linker
conveniences for formatting various types of standard link clusters.
2006-03-16 19:04:25 +00:00
Brion Vibber
3a2d55705a * Suppress useless percentage indicator on output from 7za during dumps 2006-01-22 07:03:03 +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
Æ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
Ævar Arnfjörð Bjarmason
668709e3e3 * Use wfTimestamp() instead of custom functions 2005-11-03 02:21:48 +00:00
Brion Vibber
ee372c3951 * Two-pass data dump for friendliness to the DB (--stub, then dumpTextPass.php)
* Data dump 'prefetch' mode to read normalized text from a prior dump
  (requires PHP 5, XMLReader extension)
Maybe these will keep dammit from killing our dump runs...
2005-10-16 17:33:41 +00:00
Brion Vibber
ab86423a71 Fix namespace and notalk filters for dump 2005-10-02 07:17:41 +00:00
Brion Vibber
6adbb42bf1 * Added filter options, compression piping, and multiple output streams for
dumpBackup.php
2005-10-02 04:05:40 +00:00