Siebrand Mazeland
79d5225c0e
* remove end of line whitespace
...
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Brion Vibber
d5c62f498b
Fix fatal error in Special:Export -- invalid title when using Template inclusion
2008-03-11 21:59:41 +00:00
Rotem Liss
66174ccf98
Fix for Special:Export so it doesn't ignore the page named '0'.
2008-01-27 17:18:03 +00:00
Brion Vibber
9d15edd016
* Fix for restricted namespaces/pages in Special:Export
...
userCan('read') and userCanRead() DON'T RETURN THE SAME RESULT.
WHAT THE HELL
JESUS CRAP
NOOOOOOOOOOOO
2008-01-26 00:17:02 +00:00
Brion Vibber
5137bd84c3
A little refactoring of the input splitting/expansion:
...
* Trim duplicate input. If we ask for "Foo" three times, only export it once!
* Add a (disabled) option to export used images as well. No use for it right now since Special:Export doesn't export, and Special:Import doesn't import, any useful image information. Uncomment it when that happens. :D
2008-01-20 10:58:45 +00:00
Brion Vibber
a4c45fb254
* Add option to include templates in Special:Export.
...
(An option to *expand* templates might be helpful too.)
2008-01-20 07:14:12 +00:00
Huji
2d8a62941c
(bug 12608) Unifying the spelling of getDBkey() in the code.
2008-01-14 09:13:04 +00:00
Brion Vibber
e715f5358a
URL-encode the content-disposition suggested filename for XML export data.
...
This fixes the filename encoding for non-pure-ASCII site names on IE 6/7, and may fix issues with other ASCIIish chars.
Safari 2/Mac messes up the filename either way, but percent codes are probably still better here than garbage characters. :)
IE/Mac and Safari 3/Win don't appear to pay attention to the content-disposition and still show the XML inline.
2007-07-17 18:14:36 +00:00
Rob Church
068394aec0
(bug 3173) Option to offer exported pages as a download, rather than displaying inline, as in most browsers; set Content-disposition: attachment with a filename incorporating the site name and timestamp. Defaults to being checked. Also rewrote the Export form generator to use Xml class methods; tweaked spacing on the existing check box. Tweaked English default for "exporttext".
2007-07-16 17:04:39 +00:00
Aryeh Gregor
a15c419b3d
Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.)
2007-06-29 01:19:14 +00:00
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