Commit graph

357 commits

Author SHA1 Message Date
Andrew Garrett
c9ebbcd09b Rewrite of XML Dump Processing:
* Full rewrite of the WikiImporter class to a new class, XMLDumpImporter, which uses XMLReader instead of the deprecated PHP SAX interface.
* Fixes for the following bugs:
** XML Dump Processor chokes on unrecognised tags.
** Special:Import does not allow you to import a dump including only log entries.
* Added hooks to allow extensions to handle tags in any part of the XML document.
* Fully source-compatible with the previous interface.
2010-05-12 13:28:13 +00:00
Sam Reed
e4eca2c65e * (bug 21346) Make deleted images searchable by hash
Based roughly on ApiQueryAllimages
2010-05-10 22:41:16 +00:00
Chad Horohoe
a4393915e2 Merge new-installer branch to trunk
* This is not complete yet, and should not be used outside of testing. Using it on a production database may ruin everything. This is the reason for the second entry point of new-index.php. You've been warned. 
* Known issues are at [[mw:New-installer_issues]]. Please add new items to the list if you find them.
2010-05-07 12:25:01 +00:00
Chad Horohoe
967510a4b6 Remove current MSSQL implementation from trunk. See wikitech-l for discussion. 2010-04-21 16:29:29 +00:00
Mark A. Hershberger
9c7a7e57f0 * New UploadFromUrlJob class to handle Upload-by-Copy
* Define variable for ApiUserrights.php that wasn't defined before.
* Add convertVerifyErrorToStatus and getVerificationErrorCode to
  UploadBase to translate error consts since UploadFromUrl will
  need a message to display to end-users.
* refactor mime-checking out of UploadBase::verifyFile into
  UploadBase::verifyMimeType
* Make UploadBase::verifyFile always return arrays for errors
* Use HttpFunctions instead of custom curl handler for async downloading
* TODO: Need a way to feed errors back to the requestor
* TODO: Need to add watchlist param handling and warnings checks.
2010-04-17 02:43:13 +00:00
Happy-melon
38c7c8f895 Overhaul Special:EmailUser, use HTMLForm, a SpecialPage-derived class, and general tidy up. Message change got muddled into r64901. 2010-04-10 21:14:35 +00:00
Happy-melon
edd817184c Revert r64478 - April Fool's is well over. 2010-04-03 10:13:34 +00:00
Happy-melon
d01808060f Follow-up to r64478 - pull out debugging code 2010-04-01 12:44:42 +00:00
Happy-melon
8f58352be6 Rewrite the parser in a more friendly and accessible implementation... 2010-04-01 10:50:43 +00:00
Matthew Britton
f83fb12d1d (bug 22339) "Go" result should be available through the API 2010-03-31 14:08:55 +00:00
Niklas Laxström
61095ced9f New message class up for discussion and development.
Not ment for use yet. It is just isolated file so it really doesn't need branch either.
2010-03-22 17:05:32 +00:00
Chad Horohoe
66dc879194 Refactor MergeHistory to subclass SpecialPage. Ohai unloved code :) 2010-03-18 16:41:53 +00:00
Chad Horohoe
a9bc586e62 Force loading of Sanitizer in setUp() so defines() are always present before tests. 2010-03-12 22:52:11 +00:00
Bryan Tong Minh
dd349d7b3a Merge r63621 and r63636 from REL1_16:
* Rollback chunked uploading support for 1.16
* 	Pass $sessionKey as parameter to UploadFromStash::initialize.
2010-03-12 18:26:12 +00:00
Aaron Schulz
c7b59430ee Moved MediaTransformOutput.php to /media dir 2010-02-26 07:29:38 +00:00
Max Semenik
946fec3399 Removed MMCache support, this thing is dead. Partially implements bug 19193 2010-02-16 12:56:02 +00:00
Siebrand Mazeland
f8b1c4cfb7 Random indentation and code formatting updates. No functional changes. 2010-02-14 22:07:30 +00:00
Alexandre Emsenhuber
b8ac2d6fda Fixed a doxygen warning 2010-02-12 21:37:22 +00:00
Mark A. Hershberger
c74fe71cd8 * new FauxResponse class to help with unit testing
* Add append() method to FileRepo classes to enable chunked uploading
* Change chunksessionkey to chunksession
* Remove echo json stuff
* Fix a multitude of bugs in my own code
* still to test: mwEmbed use of chunked upload
2010-02-10 10:36:11 +00:00
Tim Starling
cb982cfa1c * (bug 21551) Rewrote the Squid purge HTTP client to provide a more robust and general implementation of HTTP, allowing it to purge non-Squid caches such as Varnish. Tested against Squid (keep-alive on or off), Varnish, various kinds of network error, benchmarked at ~3k req/s.
* Reverted what was left of r59178
* Removed $wgDebugSquid, didn't do anything anyway
2010-02-05 03:36:04 +00:00
Tim Starling
c7a8875329 * Fix for r57997 and bug 21222: move math, gallery, pre and nowiki to a new module called CoreTagHooks, analogous to CoreParserFunctions.
* Extended the return interface for tag hooks in a way analogous to the one for parser functions, allowing <nowiki> and <html> to specify that they want to be in the nowiki replacement array instead of the general replacement array.
* Removed ParserOptions::setUseTeX() and related. If <math> is going to be registered in firstCallInit(), then it needs to be stable across multiple parser calls and not change based on parser options. Only one extension caller.

In parserTests.inc: 
* Fixed parser test failures due to $wgMathDirectory not being properly set up. The math directory of the host wiki was being used, leading to a parser test failure if it was not writable.
* Fixed message cache hack from r15502. Made parser tests not fail in the case where a tested message is overwritten by the local wiki. All tests now pass on my installation.
2010-02-03 07:10:58 +00:00
Mark A. Hershberger
62177bc9d1 follow-up r61655 fill out the rest of the missing messages
Add cookie handling to HttpFunctions.
2010-02-03 06:19:47 +00:00
Mark A. Hershberger
c06e4d5fa7 Parser tests now working under phpunit 2010-01-27 07:00:07 +00:00
Tim Starling
fd93e58904 * Removed JS2 stuff from jquery.js. If there's anything we really need from it, it can be re-added to wikibits.js, but that can wait for the extension analysis which I'm going to do next.
* Added Ryan Grove's jsmin.php and wrote a maintenance script wrapper called minify.php
* Added a makefile to rebuild skins/common
* Rebuilt jquery.min.js
2010-01-27 05:17:26 +00:00
Max Semenik
6c7bb57316 Special delivery for Nikerabbit: ability to connect to a SQLite db file directly, no foreplay with global settings needed. 2010-01-22 21:30:23 +00:00
Mark A. Hershberger
c5d228be4c UploadChunks added from js2 branch. Refactored. Still needs to be
tested w/o the UI first.
2010-01-22 04:37:23 +00:00
Mark A. Hershberger
f16507a49c Make tests work, note skipped tests, update autoloader for FakeMemcachedClient, take care of strange variable scoping issues in autoloaded Namespace.php. 2010-01-11 03:47:04 +00:00
Max Semenik
4b0299a765 Severely refactored the SearchResultSet descendants system, consolidating most od the code into one class. Ping r58322. 2010-01-09 14:30:55 +00:00
Tim Starling
ed9273a250 Add missing class LanguageConverter 2010-01-04 05:55:33 +00:00
Alexandre Emsenhuber
b8b19d733e Follow-up r60412: forgot to remove the class from AutoLoader 2009-12-26 16:51:15 +00:00
Aryeh Gregor
984be432fc Add rudimentary MediaWiki support to ExternalAuth 2009-12-10 01:51:22 +00:00
Aryeh Gregor
d4c6696bb7 Add new ExternalAuth mechanism, Hardcoded
This just lets you enter the database by hand in LocalSettings.php, for
testing.  Now other people can actually test ExternalAuth without having
a vBulletin license.  23 lines not counting whitespace/comments/closing
braces, and took me ~20 minutes to write.
2009-12-10 01:05:13 +00:00
Tim Starling
7688101426 Removed JS2 work (has been moved to the js2-work branch). Has been lightly tested, should mostly work. Some of the more complicated associated changes are listed below.
* Reverted HttpFunctions.php to r45549 and renamed wgSyncHTTPTimeout back to wgHTTPTimeout
* Edited out the asynchronous features from UploadFromUrl. Made fetchFile() use the curlCopy() function from new-upload r47811 instead of Http::doDownload(). Wrote my own URL validity check to avoid having to use either of the two buggy precedents.
* Removed UploadFromChunk
* Removed chunk upload and background status from ApiUpload.php
* Reverted r54669, use of addScriptClass()
* Left getHeadScripts() in its current location (OutputPage) instead of moving it back to SkinTemplate, just added wikibits.js to it to replace the removed addCoreScripts2Top()
2009-11-26 12:00:36 +00:00
Alexandre Emsenhuber
002fb024b0 * (bug 21403) memcached class renamed to MWMemecached to avoid conflict with PHP's memcached extension
* Put MemCachedClientforWiki in memcached-client.php so that maintenance/mctest.php doesn't crash when $wgMainCacheType is not CACHE_MEMCACHED
Based on a patch by Kim Hyun-Joon
2009-11-20 15:37:28 +00:00
Roan Kattouw
1d471caa46 API: (bug 19004) Add support for tags. Patch by Matthew Britton 2009-11-01 10:42:41 +00:00
Max Semenik
798cfc5ade Merge SQLite search from branches/sqlite/ to trunk 2009-10-29 16:19:35 +00:00
Chad Horohoe
dcac5f193e (bug 19859) Remove HTMLDiff. Could possibly be salvaged as an extension one day, but not today. DifferenceEngine and friends will need some refactoring to allow spinning this off. In the meantime, removing the mostly-broken experimental feature. Its always in the logs if anyone wants to reuse the code somewhere else one day 2009-10-28 18:18:05 +00:00
Chad Horohoe
25a68735f7 Add bunch of missing classes to the Autoloader 2009-10-25 13:37:15 +00:00
Max Semenik
acea2c14c0 Follow-up to r58067: removed UploadFormMogile from AutoLoader 2009-10-25 13:13:22 +00:00
Max Semenik
ae57ab1eec (bug 20275) Fixed LIKE queries on SQLite backend
* All manually built LIKE queries in the core are replaced with a wrapper function Database::buildLike()
* This function automatically performs all escaping, so Database::escapeLike() is now almost never used
2009-10-21 19:53:03 +00:00
Bryan Tong Minh
91e4d80448 Rewrote Special:Upload to allow easier extension. Mostly backwards compatible towards the end user: tested with Commons' upload scripts.
* Special:Upload now uses HTMLForm for form generation
* Upload errors that can be solved by changing the filename now do not require reuploading.
2009-10-18 19:41:01 +00:00
Michael Dale
0df1f91e53 * stubs for api iFrame Proxy system. Early summary in /js2/mwEmbed/apiProxy/
** testing page for proxy setup (hard coded to localhost) 
** added basic support to skin.php for enabling of apiproxy (off by default) 

* added flickrSearch as another remote repository
* other refactoring, cleanup of remoteSearchDriver (add-media-wizard) 

* removed query.json.1-3.js 
* removed jquery.secureEvalJSON.js 
* replaced with official http://www.JSON.org/json2.js script which is only included if JSON is undefined
2009-10-17 10:35:46 +00:00
Aaron Schulz
1c4e82f84d Moved UI diff stuff into its own DifferenceInterface file 2009-09-30 15:36:55 +00:00
Brion Vibber
0d1d984313 Revert broken rewrite of login system; totally broken.
* Login doesn't attach to session properly, so can't stay logged in!
* Password field shown in plaintext!

If it just DOESN'T WORK please keep it on a work branch, don't put it in trunk!

Reverted:
r56682
r56683
r56684
r56686
r56688
r56696
r56699
r56702
r56703
r56704
r56782
r56896
2009-09-26 00:49:32 +00:00
Happy-melon
d3f901b029 Merge in Login rewrite, second time lucky. 2009-09-20 20:28:27 +00:00
Alexandre Emsenhuber
92bd0ac1a0 Only set "unserialize_callback_func" if we use it, otherwise it can throw warning saying that __autoload() is not defined 2009-09-17 21:52:40 +00:00
Michael Dale
3d958564ec * Enhanced OutputPage to support js2 style javascript without scriptloader enabled
** loadGM output
** unique request id based on wikiTitle revision / file time
* Moved jsAutoLoadClasses to setup.php ( made conditional )
2009-09-17 01:19:02 +00:00
Michael Dale
1e4165061b more (bug 20336)
* added json folder 
* moved Services_JSON.php there
* moved Format JSON into its own class
* updated AutoLoader
2009-09-10 14:33:25 +00:00
Brion Vibber
841014ad91 Revert broken rewrite of login forms:
r55990 "* Totally refactor includes/specials/SpecialUserlogin.php:"
r55991 "Followup to r55990 - Remove debugging hack :("
r55994 "Followup to r55990 - rename method to avoid PHP Strict warnings"
r55997 "Follow-up to r55990, per comments:"

Continued reports of breakage with the new version...
Non-vital changes of this magnitude should probably be worked up on a branch to ensure everything's consistent before pushing them to trunk.
2009-09-08 18:40:05 +00:00
Andrew Garrett
8ce84340bf Add AJAX category management system. Includes suggestion system, dialogs for setting edit summaries and confirming, and methods for adding and removing all categories, but only directly in the page text (as categories in templates cannot be removed). 2009-09-08 15:02:41 +00:00