Chad Horohoe
c660ee428f
(bug 21106) tag deprecated parameter in action=paraminfo. Add new PARAM_DEPRECATED const for automagically tagging deprecated parameters. Keeps action=help and action=paraminfo up to date
2009-10-28 00:56:07 +00:00
Alexandre Emsenhuber
5c5e7d674d
* (bug 21085) list=deletedrevs no longer returns only one revision when drcontinue param is passed
2009-10-24 11:50:10 +00:00
Alex Z
216e60d01e
(bug 18019) Warn users when moving a file to a name in use on a shared repo.
...
Allow only users with the 'reupload-shared' right to complete the move.
2009-10-24 04:36:11 +00:00
Niklas Laxström
d4b444a0d6
Fix syntax errors from r57989
2009-10-22 06:18:41 +00:00
Alexandre Emsenhuber
e8f9ef9409
Fix for r57986: Notice: Undefined variable: wgEnableOpenSearchSuggest in includes/api/ApiOpenSearch.php on line 53
2009-10-21 21:22:00 +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
Roan Kattouw
99748cf05c
Split allowing &suggest requests in API opensearch from $wgEnableMWSuggest to a separate variable. This makes it possible to enable SimpleSearch (which uses API opensearch) but disable mwsuggest; enabling both seems to cause issues with the login form in Safari or Opera (don't remember which)
2009-10-21 18:44:58 +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
Aaron Schulz
ec1f410561
Removed unexplained newline at top of file. No idea why that got there.
2009-10-17 05:10:21 +00:00
Aaron Schulz
9be4e7686c
Follow up r57846: tack on an error code
2009-10-17 05:06:41 +00:00
Aaron Schulz
60660e2af3
* Fixed fatal for bad wlowner usernames
...
* Use the relevant user object to check patrol abilities rather than always using $wgUser
2009-10-17 04:18:49 +00:00
Alexandre Emsenhuber
ca82f5720a
* (bug 21105) API: list=usercontribs can now list contribs for User:0
2009-10-15 21:21:53 +00:00
Michael Dale
ab2745e92b
* ( bug 21089 ) fixes js2 upload stash support.
...
* Tested with chunk firefogg uploads, normal js2 uploads and http copy by url uploads
2009-10-15 00:14:05 +00:00
Chad Horohoe
c319cc8968
(bug 13750) $wgCapitalLinks should be a per-namespace setting
2009-10-09 12:52:16 +00:00
Alexandre Emsenhuber
168a1a8f90
replaced split() with explode(), the former is deprecated since PHP 5.3
2009-09-28 18:36:15 +00:00
Siebrand Mazeland
f854edfe87
New permission 'sendemail' added. Default right for all registered users. Can for example be used to prevent new accounts from sending spam.
...
* hide some user settings if user is not allowed to send e-mail, but can receive e-mail
* update API 'cannot send e-mail' message
* FIXME: gives 'mailnologin'/'mailnologintext' as error. Error handling should be made more fine grained
2009-09-26 23:11:45 +00:00
Roan Kattouw
0a7ce36121
API: (bug 20816) Editing a page with &watchlist=preferences (default) unwatches it if you're watching it but don't have watching preferences set. This is a regression from r53266
2009-09-26 09:22:44 +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
Roan Kattouw
6d638b24cb
API: Handle image redirects properly in imageinfo, based on reports of API requests dying with backtraces on Commons, e.g. http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&iiprop=user&titles=File:Semaphore_Alfa.svg
2009-09-23 20:55:54 +00:00
Happy-melon
ecb1cad872
Follow-ups to r56684: add a member function for extensions to add header text cleanly, and tweak variable names in api/ApiLogin.php.
2009-09-20 21:24:48 +00:00
Happy-melon
d3f901b029
Merge in Login rewrite, second time lucky.
2009-09-20 20:28:27 +00:00
Bryan Tong Minh
bc20609885
Follow up to r56639: Remove some existence check duplication and fix ApiUpload for changed return format of getExistsWarning.
2009-09-19 15:49:54 +00:00
Roan Kattouw
9661f21b82
* API: (bug 20700) Add amprop=default to list default messages in list=allmessages. This adds default="defaultmessagecontent" or defaultmissing="" to customized messages; non-customized messages get no extra attribute.
...
* Don't parse magic words in messages returned by meta=allmessages , but output the message contents verbatim
2009-09-18 15:24:00 +00:00
Roan Kattouw
fba3528881
Partial revert of r56602: remove what is probably accidentally committed debugging code.
2009-09-18 14:38:59 +00:00
Andrew Garrett
4c36759b69
Force changedfilter parameter to integer on Special:AbuseFilter.
...
Resolves bug 20496
2009-09-18 14:30:05 +00:00
Roan Kattouw
ef4886778f
API: Per CR comments on r56091, make the timeout for the API help cache configurable
2009-09-17 19:39:34 +00:00
Alex Z
68596ac79c
merge most of r56515 back to trunk (changing UserrightsPage::fetchUser to non-static)
...
Fixing ApiQueryUsers so it should work properly for interwiki users
2009-09-17 16:21:27 +00:00
Roan Kattouw
87d401f2e6
Fix r56091: cache URLs with and without ?version separately
2009-09-17 15:47:44 +00:00
Alex Z
406b6916c7
Actually use the filename supplied by the user.
2009-09-17 01:03:52 +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
Roan Kattouw
9e78c71b1e
API: Make it possible to fetch userrights tokens for interwiki users; make UserrightsPage::fetchUser() static
2009-09-10 13:44:49 +00:00
Roan Kattouw
990714436e
API: When returning an emtpy opensearch result because mwsuggest is disabled, return a valid opensearch response.
2009-09-10 13:07:36 +00:00
Tim Starling
7b7f9f0d4d
Comments and whitespace fixes only.
2009-09-10 06:43:01 +00:00
Michael Dale
7efc871cba
* (bug 20336) changed json_decode json_encode to static class in global functions
...
** we should update extensions as well
* added config for fileCheckModify date check to scriptLoader unique script id generation
2009-09-09 22:26:16 +00:00
Roan Kattouw
29c594f9a4
Follow-up to r55639: per CR comment, make API help caching disableable, and let the cache key depend on the version string
2009-09-09 12:54:56 +00:00
Brion Vibber
ecf95fd877
Cleanup for r55641: call static function statically
2009-09-08 23:54:03 +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
Happy-melon
72431ff920
Followup to r55990 - rename method to avoid PHP Strict warnings
2009-09-07 19:20:20 +00:00
Happy-melon
fca012212f
* Totally refactor includes/specials/SpecialUserlogin.php:
...
** Split backend stuff out into includes/Login.php
** Split account creation and login stuff up, into includes/specials/CreateAccount.php and includes/specials/Userlogin.php.
* Reimplement the special pages as subclasses of SpecialPage
* Use HTMLForm to generate the input forms
** Deprecate and delete includes/templates/Userlogin.php, which is horrible and old :D
This changes the syntax of the UserLoginForm and UserCreateForm hooks, and AuthPlugin::modifyUITemplate; they now receive the SpecialPage subclass rather than the template to work with. Update everything I could find in SVN to accommodate this.
2009-09-07 19:00:49 +00:00
Daniel Kinzler
0234640637
adding public access methods for use by XMLRC extension.
2009-09-03 16:15:55 +00:00
Tim Starling
f4d32ce48b
Fix for r53194: according to the XSLT 1.0 spec, the MIME type should be text/xml or application/xml. In XSLT 2.0, it is application/xslt+xml. Either way, text/xsl is wrong.
2009-09-02 08:05:47 +00:00
Bryan Tong Minh
efd86ed3aa
* Add buffering to ApiFormatBase, which allows buffering the result without needing ob_* functions. This is for async downloads, but I couldn't get it to work yet so this commit does not contain the files that actually use the buffering.
...
* Hide internalhttpsession parameter from web requests
2009-08-28 21:18:39 +00:00
Roan Kattouw
e3ab8ed99a
API: BREAKING CHANGE: (bug 20426) Instead of throwing an error when a limit is set too high/low, throw a warning and continue with the limit set to the maximum/minimum
2009-08-28 16:37:48 +00:00
Roan Kattouw
d7f593a312
API: Add user-agent and method (GET/POST) to request logging, and only log the action= parameter for mustBePosted modules
2009-08-27 22:09:28 +00:00
Roan Kattouw
3ac3ccaaf0
API: Refactor the XML formatter a bit so that ApiFormatXml::recXmlPrint() is now actually usable as a generic XML formatter
2009-08-27 21:15:20 +00:00
Roan Kattouw
adf309bdc8
API: Cache API help in memcached, inital use of the API log added earlier seems to indicate that the help is expensive. Cache doesn't seem to help for me locally, so we probably need to test this on a real server and see if it really works.
2009-08-27 18:25:51 +00:00
Roan Kattouw
73560aeb2c
API: Do a STRAIGHT_JOIN in ApiQueryBacklinks's first query to counter a MySQL 4 bug where the optmizer chooses to do a table scan on page instead.
2009-08-27 14:58:19 +00:00
Michael Dale
8fbc2feb5a
enabled async downloaded via configuration var: wgEnableAsyncDownload (pending windows fix)
2009-08-27 14:46:54 +00:00
Bryan Tong Minh
fdc9df9629
* Output warnings as filenames rather than an array representation of a File object.
...
* Renamed variable in UploadBase::checkWarnings to better indicate its meaning
2009-08-27 14:21:53 +00:00
Roan Kattouw
f8f279e865
API: Per rainman, mark list=search as an expensive query and lower its limits to 50/500 from 500/5000
2009-08-26 21:13:06 +00:00