Commit graph

395 commits

Author SHA1 Message Date
Markus Glaser
c33219442b load selenium test suite instead of single test 2010-07-31 12:01:12 +00:00
Bryan Tong Minh
546a55a79d (bug 23380) Uploaded files that are larger than allowed by PHP now show a useful error message.
Introduced a WebRequestUpload class which is a wrapper around $_FILES and contains all getUpload* and getFile* methods. This has as advantage that the upload can be passed along without $wgRequest. Also because I like objects.
2010-07-27 20:38:36 +00:00
Max Semenik
20a509c735 Fix autoloader borkage (from Jeroen's refactoring?) 2010-07-24 21:30:41 +00:00
Jeroen De Dauw
a620daf697 Split Installer into Installer and CoreInstaller + made misc style and doc improvements 2010-07-22 17:58:26 +00:00
Chad Horohoe
98ab38038d * Split Mysql/Sqlite updates into their own files
* Rename Update -> DatabaseUpdaters to be more consistent with DatabaseInstaller
* Made DatabaseUpdaters abstract and merged the Updaters interface in, had Mysql/Oracle/Sqlite subclass it. Entry point is now factory DatabaseUpdaters::newForDB()
2010-07-20 22:28:50 +00:00
Jeroen De Dauw
05e8dc29f8 Renamed InstallerDBType to DatabaseInstaller 2010-07-20 09:30:33 +00:00
Jeroen De Dauw
c8f72a02bf Follow up to r69528 (forgot to commit this file) 2010-07-19 04:18:51 +00:00
Alexandre Emsenhuber
2c9d0dc4a4 * Modified Special:Log to extend SpecialPage
* Use FormOptions
2010-07-18 12:10:39 +00:00
Alexandre Emsenhuber
47df637812 * Modified Special:Blockme to subclass UnlistedSpecialPage
* Use content language to get the user name in the "proxyblocker" and added it in $wgReservedUsernames
2010-07-17 18:32:15 +00:00
Chad Horohoe
8b8b40aa63 Add stub OracleUpdater 2010-07-17 12:11:23 +00:00
Niklas Laxström
4f845e3e07 Revert part of r69412 which causes fatal errors 2010-07-16 07:24:45 +00:00
X!
8cc3688dfd Move FakeResultWrapper to Database.php, allowing more special pages and extensions than just Special:Allmessages to use a ResultWrapper-specific class (TablePager comes to mind) 2010-07-15 22:39:48 +00:00
Alexandre Emsenhuber
537b6d6d28 Modified Special:Userlogout to subclass UnlistedSpecialPage 2010-07-11 14:17:17 +00:00
Alexandre Emsenhuber
33cdc2202b * Modified Special:Specialpages to subclass UnlistedSpecialPage instead of using wfSpecialSpecialpages()
* Use Html:: methods
2010-07-10 20:13:06 +00:00
Bryan Tong Minh
55c96b6ca3 Revert r64436, r64437, r64508 per CR r64436 2010-07-09 09:46:05 +00:00
Chad Horohoe
1dc0438117 Change Updaters to Updater 2010-07-08 15:00:00 +00:00
Chad Horohoe
93d24bedf4 Refactor a lot of updaters.inc into some classes in the installer code. Still need all these blasted global functions. And OpenID still uses $wgUpdates, so support for it remains...for now! 2010-07-08 14:57:19 +00:00
Alexandre Emsenhuber
1ade5c518b Modified Special:Filepath to subclass SpecialPage; also changed some calls from Xml:: to Html:: 2010-07-03 18:39:20 +00:00
Mark A. Hershberger
c4100fb83b * Eliminate CLIInstallerOutput per r68645 since, yes, it wasn't needed.
* Make sure output only happens in the top-level Installer implementations.
* Differentiate Status warning messages from Status error messages in the Installer.
* Change abstract method from Install::showStatusError() to Install::showStatusMessage() since we'll use it to show warnings now, too.
* TODO Need a better way to extract/display Status warning messages since, from my look at the Status class, it looks like warnings are implemented, but not really used.
2010-07-02 21:15:13 +00:00
Mark A. Hershberger
2dbed8d5cd * consolidate some installer functionals into the Installer class
* add beginning of CliInstallerOutput class
* make it possible to override LocalSettings from a maint script
* make basic cli installation possible (only tested mysql so far)
2010-06-27 21:48:51 +00:00
Tim Starling
1fcfd134d1 * Integrated the selenium tests into MediaWiki properly, and removed the insecure LocalSeleniumSettings.php concept.
* Removed the insecure web entry point hiding in the maintenance directory, in RunSeleniumTests.php. Replaced it with a special page interface, with CSRF protection and access control. If you wanted a secure web entry point, then I suppose this is how it would be done, but I think it should be killed ASAP.
* As in r68544, removed as many require() calls as possible, since nobody seems to know how to do them properly. Made the usual changes to make classes autoloader-compatible: class constants instead of define(), no file-scope registration code.
2010-06-25 05:55:23 +00:00
Tim Starling
752046eecf * Removed require/require_once from maintenance scripts where possible, replaced by the AutoLoader, since register_globals vulnerabilities and inappropriate include_path dependencies are so common.
* Rearranged PHPUnit startup so that MediaWiki can be started from the file scope, as required by Setup.php and other core MediaWiki startup files. The custom entry point maintenance/tests/phpunit starts MediaWiki and then passes its arguments through to PHPUnit.
* Moved the parser test tag hooks into classes and moved their registration to parserTests.inc, to allow autoloading.
* Renamed ApiSetup to ApiTestSetup, MediaWiki_Setup to MediaWikiTestSetup, PTShell to ParserTestSuiteBackend.
* Moved command-line initialisation code from the file scope of parserTests.inc to parserTests.php to allow autoloading
* Rewrote the interface between PHPUnit and the parser tests. Removed all the hacks designed to make the rest of the PHPUnit tests work without proper teardown of the parser test environment. Moved the PHPUnit_Framework_TestSuite subclass to a file that's not scanned by PHPUnit, to avoid "no tests found" warnings". 
* Removed the {{NUMBEROFARTICLES}} parser test, too hard to make it work consistently.
2010-06-25 02:55:51 +00:00
Mark A. Hershberger
e3644ae2c4 * Adapt install.php to a more “traditional” maintenance-style script so it can extend and use Maintenance class convenience methods.
* Add CliInstaller class and put it in the autoloads.
2010-06-23 01:08:34 +00:00
Derk-Jan Hartman
0ccd98bdb6 Add a new PNG parser in order to recognize APNG (animated PNG) images. 2010-06-20 16:09:12 +00:00
Derk-Jan Hartman
385bd8a911 (bug 23621) New Special:ComparePages to compare (diff) two articles. 2010-06-19 21:17:42 +00:00
Mark A. Hershberger
bd2773b3cd Organise sub-dirs in AutoLoader.php 2010-06-17 22:28:06 +00:00
Alexandre Emsenhuber
2f0c3efd09 Changes to Special:Lockdb and Special:Unlockdb:
* Subclass SpecialPage instead of using wfSpecial*() functions
* Now validate correctly when output is HTML5
2010-06-13 13:52:20 +00:00
Tobias
d73fb3713e New feature RevisionMove (bug 21312). Introducing SpecialRevisionMove.php and revisionmove permission. Experimental, use at own risk (no group has this permission by default, so it should not break anything unless you are foolish enough to experiment with it :)) 2010-05-30 18:00:01 +00:00
Siebrand Mazeland
d279df340e Ran stylize.php, removed trailing whitespace, updated indentation and code formatting. 2010-05-30 14:48:30 +00:00
Andrew Garrett
4e19e40962 Fix r66858 -- reassign classes in the AutoLoader 2010-05-26 06:22:36 +00:00
Sam Reed
411600af87 * (bug 23524) Api Modules as followup to bug 14473 (Add iwlinks table to track inline interwiki link usage
Addition of IWBacklinks... That should be the bug done
2010-05-25 19:50:20 +00:00
Sam Reed
82b16eb1d6 Try r66856 again - Less fail this time
Part of bug 23332

Move everything that isn't the SpecialRevisionDelete class out of specials/SpecialRevisiondelete.php into RevisionDelete.php
2010-05-24 23:32:05 +00:00
Sam Reed
a4a31c5534 Revert r66856, due to the complete rubbish commit summary (dupe of another revision) 2010-05-24 23:28:00 +00:00
Sam Reed
c0ab171334 bug 18608 done in a fashion much closer to how I should've done it originally.
Latching onto bug 22061 output

Following up r62195 and r61125Part of bug 23332

Move everything that isn't the SpecialRevisionDelete class out of specials/SpecialRevisiondelete.php into RevisionDelete.php
2010-05-24 23:24:17 +00:00
Sam Reed
5b5bf3ba53 Part 1 of Bug 23524 - Api Modules as followup to bug 14473 (Add iwlinks table to track inline interwiki link usage)
Addition of ApiQueryIWLinks (prop=iwlinks)
2010-05-14 20:54:55 +00:00
Mark A. Hershberger
e5cc87957f Move jobqueue classes to their own directory. 2010-05-14 16:23:26 +00:00
Chad Horohoe
42208a64ee (bug 22844) Support Micosoft Windows Cache aka WINCACHE 2010-05-13 17:41:13 +00:00
Andrew Garrett
59e7d4374f Function accessibility changes, documentation, revert function rename for r66267 2010-05-12 13:37:45 +00:00
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