Commit graph

72 commits

Author SHA1 Message Date
River Tarnell
e59f873bef - Http::request(), Http::post()
- don't redirect page views on POST
- Special:Export shouldn't do POST special case when page name provided
- Special:Import should use POST for interwiki fetches
2007-05-10 19:13:02 +00:00
Daniel Kinzler
d7818e6ec5 re-submitting add-from-cat feature, fixed get/subpage syntax. Should work with interwiki import now. 2007-03-14 17:28:22 +00:00
Tim Starling
98a4e6e0ff Revert of r20085, breaks retrieval with GET and subpage syntax, which breaks transwiki and probably various other things. 2007-03-05 17:36:58 +00:00
Daniel Kinzler
00b089b9dc pages-from-category function for Special:Export 2007-02-28 17:27:44 +00:00
Daniel Kinzler
4855a81d95 Bug 8824: check read permission when exporting 2007-02-15 01:24:33 +00:00
Nick Jenkins
f88c771756 The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Brion Vibber
a7dfa5da71 * (bug 8148) Handle non-removable output buffers gracefully when cleaning
buffers for HTTP 304 responses, StreamFile, and Special:Export.
  Duplicated code merged into wfResetOutputBuffers() and wfClearOutputBuffers()
2006-12-11 01:51:21 +00:00
Nick Jenkins
ae8554c45b Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth. 2006-11-29 11:43:58 +00:00
Tim Starling
a3b490d2c4 * Made special page names case-insensitive and localisable. Care has been taken to maintain backwards compatibility.
* Used special page subpages in a few more places, instead of query parameters
2006-10-30 06:25:31 +00:00
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
Brion Vibber
bf63ffaa2c Committed a bunch of live hacks from Wikimedia servers
A few left, but these don't look too evil
2006-10-02 17:04:13 +00:00
Brion Vibber
066c55dcc9 Fix regression in regression fix 2006-08-15 18:31:45 +00:00
Brion Vibber
251ceb80c8 * (bug 6946) Fix unexpected behavior change with GET hits to Special:Export 2006-08-15 15:50:21 +00:00
Brion Vibber
5b2ccf0dce * (bug 6971) Fix regression in Special:Export history view 2006-08-11 16:22:51 +00:00
Tim Starling
3f80b41dc2 Added experimental history paging API, subject to change 2006-08-05 14:10:10 +00:00
Brion Vibber
e7a64f3e99 * (bug 6472) Fix regression in Special:Export with multiple pages 2006-06-28 19:45:41 +00:00
Brion Vibber
2f82b79fd7 * Allow fetching all revisions from transwiki Special:Import
* Allow fetching all revisions from Special:Export GET request
* Disable output buffering on Special:Export; should help with streaming
  large numbers of history items.
* Allow setting a maximum number of revisions for history Special:Export;
  pages with more than $wgExportMaxHistory revisions are excluded from
  export when history is requested.
* Fix transwiki import of pages with space in name
2006-06-27 21:48:43 +00:00
Rob Church
7a9219be74 *cough* Er, make it work? :) [dropped the action=submit] part 2006-06-25 17:33:36 +00:00
Rob Church
4524dd2596 * Use XML functions to create the form on Special:Export
* (bug 6434) Allow customisation of submit button text on Special:Export
* Tweak default text for "exportnohistory"
2006-06-25 01:21:17 +00:00
Domas Mituzas
e6085d6e36 AutoLoad Revision 2006-06-06 10:56:46 +00:00
Brion Vibber
f2c29baf9f Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +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
Æ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
Brion Vibber
bb17fe82a8 * (bug 4446) $wgExportAllowHistory option to explicitly disable history in
Special:Export form, 'exportnohistory' message to translate live hack.
2006-01-03 23:32:39 +00:00
Antoine Musso
2ca68a256d Clean up unused globals! 2005-12-04 18:27:59 +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
Brion Vibber
99967490f9 * Add options to dumpBackup.php for making split/partial dumps by page id 2005-09-24 06:38:36 +00:00
Brion Vibber
c3458a3199 * Use strval() to make sure we don't accidentally get null on bad revision
text loads or other fields mucking up XML export output
2005-09-05 07:35:29 +00:00
Brion Vibber
d355f8af72 Live hack: don't blow up on empty/broken timestamps. (It will however output wrong date.) 2005-09-05 07:27:08 +00:00
Ævar Arnfjörð Bjarmason
5e3539a4d1 * Safe html output with wfMsgHtml()
* Fixed the indenting of the XML
* Code cleanup
2005-08-26 13:56:25 +00:00
Niklas Laxström
efca2a63ee Bug 3116: Division by zero on [[Image:Foo.png|123x123px|]]
See Bug 3129
2005-08-16 13:27:00 +00:00
Brion Vibber
36aa91dd06 * live fix: force index on Special:Export only for backup dump 2005-07-13 01:59:12 +00:00
Brion Vibber
6a9585b4aa Some code cleanup on Special:Import, add initial version of command-line
dump importer script (importDump.php). Can read from stdin or from file
on command-line (file can be auto-decompressed if gzip and zlib support).
Still needs some work, but basically functions.
2005-07-05 03:16:56 +00:00
Brion Vibber
639cecc8e0 * (bug 2674) Include some site configuration info in export data:
namespaces definitions, case-sensitivity, site name, version.
* Use xml:space="preserve" hint on export <text> elements
2005-07-05 00:18:01 +00:00
Brion Vibber
22ab0f8ea7 Reverting this for the moment.
It doesn't really fit in Special:Export but would make a great standalone extension.
2005-06-25 09:20:34 +00:00
Magnus Manske
50a7a69bfe Special::Export extension "list all articles since XXX" 2005-06-25 09:16:16 +00:00
Ævar Arnfjörð Bjarmason
229495c90e * Fixed some phpdoc errors, see http://wikipedia.sf.net/doc/errors.html 2005-05-10 08:28:33 +00:00
Brion Vibber
aad99df7d4 * HistoryBlobStub: the last-used HistoryBlob is kept open to speed up
multiple-revision pulls
* Special:Export now includes page, revision, and user id numbers by
  default (previously this was disabled for no particular reason)
* dumpBackup.php can dump the full database to Export XML, with current
  revisions only or complete histories.
2005-05-08 08:17:12 +00:00
Ævar Arnfjörð Bjarmason
8d9ec35bc3 * Cleaned up 2005-04-21 03:58:10 +00:00
Brion Vibber
6f5560867c Start removing the Latin-1 hacks. We're going pure UTF-8 for 1.5... 2005-03-26 22:23:48 +00:00
Brion Vibber
7d8cfdca21 Lazy loading of revision text; needed for separate text storage backend.
Use Revision for Article::loadLastEdit
2005-03-18 04:32:55 +00:00
Brion Vibber
31be32e7d2 Special:Export produces a particular output format which is the raw wikitext. Outputting a different format depending on configuration would break all users of this feature. 2005-03-09 02:16:44 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Magnus Manske
4aacdc1d06 Special:Export will now return *real* XML when using XML parser 2004-12-21 10:54:28 +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
42f9badced Add profiling points, and disable output instead of abrupt exit (so things like the profiling actually work!) 2004-11-24 09:57:03 +00:00