lhc/web/wiklou.git
13 years agoFix bug in makeCollapsible.
Krinkle [Sat, 5 Mar 2011 19:00:19 +0000 (19:00 +0000)]
Fix bug in makeCollapsible.
* The instantHide implementation (added in r82471) didn't cover the case where a table is collapsed by default, it needs to pass the toggle to the function so that the row it is in can be excluded.
* The bug was found by user Helder.wiki, also reproducable on the demonstration page (I guess it was cached for everyone, since nobody noticed?)
* Demonstration page has been refreshed and all tests are passed now.

13 years agoFixup to schema help, there's only one now
Chad Horohoe [Sat, 5 Mar 2011 18:32:37 +0000 (18:32 +0000)]
Fixup to schema help, there's only one now

13 years agoFollow-up r83240: seems people prefer returning false than the current version when...
Alexandre Emsenhuber [Sat, 5 Mar 2011 17:55:21 +0000 (17:55 +0000)]
Follow-up r83240: seems people prefer returning false than the current version when no revision with given ID is found

13 years agotests for IP class, mostly incompletes
Antoine Musso [Sat, 5 Mar 2011 17:30:33 +0000 (17:30 +0000)]
tests for IP class, mostly incompletes

* IP::sanitizeIP()
* IP::canonicalize()
* IP::isInRange()

13 years ago(bug 27018) Added action=filerevert to revert files to an old version. Copied procedu...
Bryan Tong Minh [Sat, 5 Mar 2011 17:23:35 +0000 (17:23 +0000)]
(bug 27018) Added action=filerevert to revert files to an old version. Copied procedure from FileRevertForm, as most of the verification procedure is simple enough to not warrant the effort of writing a dedicated backend.

Further changes:
* Added Status::getErrorsByType() which returns the internal error array untouched
* Added ApiResult::convertStatusToArray() which converts a Status object to something useful for the Api

13 years agoNormalise table column ordering against ImagePage
Sam Reed [Sat, 5 Mar 2011 17:13:13 +0000 (17:13 +0000)]
Normalise table column ordering against ImagePage

13 years agoFollow-up r83280; looks like I accidentally deprecated a piece of legacy JS :D
Happy-melon [Sat, 5 Mar 2011 17:06:42 +0000 (17:06 +0000)]
Follow-up r83280; looks like I accidentally deprecated a piece of legacy JS :D

13 years agoExplicit variables, documentation, newlines, braces
Sam Reed [Sat, 5 Mar 2011 17:01:33 +0000 (17:01 +0000)]
Explicit variables, documentation, newlines, braces

13 years agoHTMLFormField class to build a select-dropdown-with-additional-text-field structure...
Happy-melon [Sat, 5 Mar 2011 16:51:13 +0000 (16:51 +0000)]
HTMLFormField class to build a select-dropdown-with-additional-text-field structure, with the select options maybe parsed from a system message as is done for the protect, block, delete, fileupload, etc, dialogues.  Serves as a replacement vector for Xml::listDropDown().

13 years agoFix E_STRICT
Max Semenik [Sat, 5 Mar 2011 16:32:32 +0000 (16:32 +0000)]
Fix E_STRICT

13 years agoTests for bug 27854 - Http::isValidURI is to lax
Antoine Musso [Sat, 5 Mar 2011 16:15:39 +0000 (16:15 +0000)]
Tests for bug 27854 - Http::isValidURI is to lax

Those tests are made to help someone fix bug 27854. You might want to add
some more.  Please note we want this function to only validate curl supported
URI, hence the hardcoded protocols http,https and ftp.

Some of those tests currently fail because of bug 27854.

13 years agoDon't dupe/drop parts of searchindex on SQLite
Max Semenik [Sat, 5 Mar 2011 16:09:10 +0000 (16:09 +0000)]
Don't dupe/drop parts of searchindex on SQLite

13 years agoInclude MediaWiki:Noscript.css in <noscript></noscript> tags in the header, to allow...
Happy-melon [Sat, 5 Mar 2011 16:01:25 +0000 (16:01 +0000)]
Include MediaWiki:Noscript.css in <noscript></noscript> tags in the header, to allow wikis to load styles for users with JS disabled.

13 years agoMediaWikiTestCase: factored prefix generation to a separate function
Max Semenik [Sat, 5 Mar 2011 15:44:28 +0000 (15:44 +0000)]
MediaWikiTestCase: factored prefix generation to a separate function

13 years agoFollow-up r83286: detabify description for mediatype
Bryan Tong Minh [Sat, 5 Mar 2011 15:14:49 +0000 (15:14 +0000)]
Follow-up r83286: detabify description for mediatype

13 years ago(bug 27587) list=filearchive now outputs full title info
Bryan Tong Minh [Sat, 5 Mar 2011 15:00:23 +0000 (15:00 +0000)]
(bug 27587) list=filearchive now outputs full title info

13 years agoFollow-up r83284. Fixing JSLint warnings: No need to escape a pipe (|) but a caret...
Krinkle [Sat, 5 Mar 2011 14:56:57 +0000 (14:56 +0000)]
Follow-up r83284. Fixing JSLint warnings: No need to escape a pipe (|) but a caret (^) should be escaped

13 years ago(bug 27590) prop=imageinfo now allows querying the media type
Bryan Tong Minh [Sat, 5 Mar 2011 14:56:49 +0000 (14:56 +0000)]
(bug 27590) prop=imageinfo now allows querying the media type

13 years agoFollow-up r83282: Re-add the lost $this->getNamespace() == NS_FILE, forgot to test...
Bryan Tong Minh [Sat, 5 Mar 2011 14:47:11 +0000 (14:47 +0000)]
Follow-up r83282: Re-add the lost $this->getNamespace() == NS_FILE, forgot to test the code for normal pages.

13 years agoFixed (bug 27848) Escape '-' in $.escapeRE()
Krinkle [Sat, 5 Mar 2011 14:46:43 +0000 (14:46 +0000)]
Fixed (bug 27848) Escape '-' in $.escapeRE()

13 years agoMove the file related parts of Title::isValidMoveOperation to its own function, Title...
Bryan Tong Minh [Sat, 5 Mar 2011 14:44:28 +0000 (14:44 +0000)]
Move the file related parts of Title::isValidMoveOperation to its own function, Title::validateFileMoveOperation

13 years agoFollow-up r83183, r83202:
Happy-melon [Sat, 5 Mar 2011 12:48:32 +0000 (12:48 +0000)]
Follow-up r83183, r83202:
* Update SpecialCheckUser.php to new location of IP functions
* Spin out the 'hide-other-field-if-select-box-not-on-other' function as one which should apply to all such fields, especially those created via HTMLForm.  SpecialBlockip and SpecialGlobalBlock should ultimately be converted to use HTMLForm anyway.

13 years ago(bug 27862; follow-up r77714) Make emailuser api module not freak out when SpecialEma...
Brian Wolff [Sat, 5 Mar 2011 03:35:49 +0000 (03:35 +0000)]
(bug 27862; follow-up r77714) Make emailuser api module not freak out when SpecialEmailUser returns a status object instead of true.

13 years agoIf the unknown element is empty, there won't be a matching END_ELEMENT. There's nothi...
Platonides [Fri, 4 Mar 2011 22:52:20 +0000 (22:52 +0000)]
If the unknown element is empty, there won't be a matching END_ELEMENT. There's nothing to peek inside.

13 years agotrim the upload_by_url field from upload form, since if you have an extra space at...
Brian Wolff [Fri, 4 Mar 2011 22:21:48 +0000 (22:21 +0000)]
trim the upload_by_url field from upload form, since if you have an extra space at the beggining like I
did when copying and pasting a url, gives a really misleading error message.

13 years agoFix and make file moving better resilient against errors by first copying the files...
Bryan Tong Minh [Fri, 4 Mar 2011 21:57:23 +0000 (21:57 +0000)]
Fix and make file moving better resilient against errors by first copying the files, then doing the db updates and finally cleaning up the source.
* FsRepo::cleanupBatch now accepts either pairs, virtual urls and real paths
* Add missing begin() and commit() to LocalFileMoveBatch
* Actually set an error after incrementing failCount because otherwise the status is still good
* Changed some isOk() to isGood() and set ->ok explicitly to false after rollback

13 years ago* (bug 27763) Article::getParserOutput() no longer throws a fatal given when an incor...
Alexandre Emsenhuber [Fri, 4 Mar 2011 20:16:35 +0000 (20:16 +0000)]
* (bug 27763) Article::getParserOutput() no longer throws a fatal given when an incorrect revision ID is passed

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 4 Mar 2011 20:06:34 +0000 (20:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-04 19:51:00 UTC)

13 years agofollowup r83227 ... missed bits of patch
Mark A. Hershberger [Fri, 4 Mar 2011 19:19:59 +0000 (19:19 +0000)]
followup r83227 ... missed bits of patch

13 years agoW/S cleanup
Mark A. Hershberger [Fri, 4 Mar 2011 19:13:59 +0000 (19:13 +0000)]
W/S cleanup

13 years ago(bug 27825) Make the raw watchlist edit messages use formatNum.
Brian Wolff [Fri, 4 Mar 2011 19:08:21 +0000 (19:08 +0000)]
(bug 27825) Make the raw watchlist edit messages use formatNum.

Hopefully i added to the right section of RELEASE-NOTES. Wasn't sure.

13 years ago* Bug 27823 - Re-enable functionality of --uploads option of importDump.php; introduc...
Mark A. Hershberger [Fri, 4 Mar 2011 18:25:21 +0000 (18:25 +0000)]
* Bug 27823 - Re-enable functionality of --uploads option of importDump.php; introduce --namespaces filter option for importDump.php

Patch from Dmitriy Sintsov of which he writes:

    I needed to selectively import files from URL's defined in
    previousely made XML dump. This worked fine in 1.15, but to my
    surprise wasn't working with 1.17, producing an error. I've
    partially fixed upload code (including supplying of original User
    instance for local upload) and introduced new option to
    selectively import only the listed namespaces in importDump.php
    command line.

13 years agoUnderscore are not valid in language code
Antoine Musso [Fri, 4 Mar 2011 17:16:09 +0000 (17:16 +0000)]
Underscore are not valid in language code

* Reject underscore in validation
* Still case unsensitive
* Corrected tests using underscore

Follow up r83160 which was a follow up of r82927 (language code validation)

13 years ago(bug 26995) File size is now checked before uploading in HTML5 browsers
Bryan Tong Minh [Fri, 4 Mar 2011 15:38:37 +0000 (15:38 +0000)]
(bug 26995) File size is now checked before uploading in HTML5 browsers
* Exposed $wgMaxUploadSize to JS
* Exposed message largefileserver to JS

13 years ago(bug 27781) Pt 2: Check for minimum PHP version in installer (which is seperate from...
Chad Horohoe [Fri, 4 Mar 2011 13:58:40 +0000 (13:58 +0000)]
(bug 27781) Pt 2: Check for minimum PHP version in installer (which is seperate from the PHP4 check)

13 years agoCleanup r83022: just use IGNORE
Chad Horohoe [Fri, 4 Mar 2011 13:17:13 +0000 (13:17 +0000)]
Cleanup r83022: just use IGNORE

13 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 4 Mar 2011 11:36:47 +0000 (11:36 +0000)]
Localisation updates from translatewiki.net.
* Adding support for Liv language with fallback to Estonian.

Also remove trailing whitespace in RELEASE-NOTES

13 years ago* Added an Ehcache client.
Tim Starling [Fri, 4 Mar 2011 06:01:30 +0000 (06:01 +0000)]
* Added an Ehcache client.
* Fixed encoding of spaces in memcached keys, in r83140 they would have been encoded as "+".

13 years agoAdding isIp-tests to MW JS Test Suite (based on IPTest.php)
Krinkle [Fri, 4 Mar 2011 02:11:13 +0000 (02:11 +0000)]
Adding isIp-tests to MW JS Test Suite (based on IPTest.php)
* fixing a typo in variable statement (semicolon->comma, thx JSHint, browsers tend to ignore)
* Clean up comments

13 years agoMoving IP-check to mw.util & some enhancements to and applying code conventions to...
Krinkle [Fri, 4 Mar 2011 01:48:24 +0000 (01:48 +0000)]
Moving IP-check to mw.util & some enhancements to and applying code conventions to mw.special.block.js
* This commit addresses the @TODOs that were in mediawiki.legacy.block before it was migrated to /resources in r83183 ("@TODO: find some better JS file for [is IP functions]")
* JSHint warning fixed: Using ==== when comparing to '' (safer and faster than ==)
* Instead of checking the initial onload state by faking a onkeyup/onchange event, seperate the two functions and use those
** --> This fixes issue where it falsely triggers other bindings on-load that are globally bound to input elements via $('input').live() or $('[type="text"]').delegate() because of the .keyup()/.change() call )
* Caching selectors (var $wpBlockExpiry = $(..) etc.) instead of re-creating a dozen jQuery objects again and getting the document element by id – on *every* onkeyup/onchange
** --> Notable speed improvement in Safari 3 and IE6 with the caching, these had a little bit of a lag when typing fast, mw.legacy.block.js had the lag as well. Fixed now.
* Adding instantToggle-argument to switch between fade or hiding/showing right away. When setting the initial state they're called with instant=true so that there's no fading, the page loads and stuff hides that shouldn't be visible. Any later interaction will still have the fade.
** Calling a function like foo(true) sucks, adding a local DO_INSTANT = true.
* Making behaviour the same as the legacy.block was (if isEmpty, do bring the element back to view ( show() / fadeIn) instead of doing nothing)

13 years agoCall to two undefined functions. fixed, Follow-up r83183
Krinkle [Fri, 4 Mar 2011 00:43:16 +0000 (00:43 +0000)]
Call to two undefined functions. fixed, Follow-up r83183

13 years agoPHP Warning: filemtime() [function.filemtime]: stat failed for /www/w/skins/common...
Krinkle [Fri, 4 Mar 2011 00:20:10 +0000 (00:20 +0000)]
PHP Warning:  filemtime() [function.filemtime]: stat failed for /www/w/skins/common/block.js in /w/includes/resourceloader/ResourceLoaderFileModule.php on line 365 ; FIXED (r83183)

13 years agoJavaScript clean-up (Code conventions, cross-browser fixes and JSHint validation)
Krinkle [Fri, 4 Mar 2011 00:15:03 +0000 (00:15 +0000)]
JavaScript clean-up (Code conventions, cross-browser fixes and JSHint validation)

; history.js
* Applied whitespace conventions + removed trailing whitespace
* Combining var statements

; mediawiki.action.history.js
* Calling in document.ready instead of directly (jQuery(fn) is short for jQuery(document).ready(fn))
** Originally it was a hookEvent('load'), during rewrite in r74397 it was dropped. Restoring now.
* Wrapping in jQuery-to-$
* Combining document.ready and wrapper into one (jQuery internally calls the ready-fn with jQuery as first argument) ($(function(){ $(function(){ /* domready */ })(jQuery); --> jQuery( function( $ ) { /* domready */ } );
* (http://jqbug.com/8229) Attributes must be quoted, just like CSS requires that.

; mediawiki.action.view.rightClickEdit.js
* Wrapping in jQuery-to-$

; IEFixes.js
* Moving function calls within the if statement since the passed arguments are undefined otherwise

13 years agoConvert Special:BlockIP JS to jQuery/ResourceLoader. Change the order of the checkbo...
Happy-melon [Thu, 3 Mar 2011 23:54:39 +0000 (23:54 +0000)]
Convert Special:BlockIP JS to jQuery/ResourceLoader.  Change the order of the checkboxes on the block form so that options which appear/disappear when the type of user is changed are grouped together.

13 years agoFollowup r82060
Sam Reed [Thu, 3 Mar 2011 23:22:39 +0000 (23:22 +0000)]
Followup r82060

Calling intval() on an array of integers isn't going to get people very far

simplify logic, and then only do validation if $min or $max are not null

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 3 Mar 2011 21:51:07 +0000 (21:51 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-03 21:42:00 UTC)

13 years agoOptionally disable including mediawiki.legacy (wikibits.js) module.
Happy-melon [Thu, 3 Mar 2011 21:40:14 +0000 (21:40 +0000)]
Optionally disable including mediawiki.legacy (wikibits.js) module.

13 years agoFix language code validation (from r82927)
Antoine Musso [Thu, 3 Mar 2011 19:13:57 +0000 (19:13 +0000)]
Fix language code validation (from r82927)

A language code may contains the underscore character (be_tarask)
and might as well be upper case (FR).

Add tests for Language::isValidBuiltInCode() against some language codes

13 years agoMerge r83152 from 1.17wmf1 to trunk
Roan Kattouw [Thu, 3 Mar 2011 18:04:11 +0000 (18:04 +0000)]
Merge r83152 from 1.17wmf1 to trunk

13 years agorm unused member var
Chad Horohoe [Thu, 3 Mar 2011 15:34:12 +0000 (15:34 +0000)]
rm unused member var

13 years ago* When CACHE_ANYTHING is requested, return the cached instance, don't construct a...
Tim Starling [Thu, 3 Mar 2011 15:24:51 +0000 (15:24 +0000)]
* When CACHE_ANYTHING is requested, return the cached instance, don't construct a new object for each use.
* In MemcachedSessions.php, register a shutdown function to shut down the session early, before $wgMemc is destroyed. I'm not sure why my recent changes caused this problem to show up now.
* Use EmptyBagOStuff instead of FakeMemCachedClient in DefaultSettings.php for CACHE_NONE.

13 years agoFollowup r83140: FakeMemCachedClient -> EmptyBagOStuff in tests
Chad Horohoe [Thu, 3 Mar 2011 12:55:22 +0000 (12:55 +0000)]
Followup r83140: FakeMemCachedClient -> EmptyBagOStuff in tests

13 years agoTweak debug() to use name of class in debug output
Chad Horohoe [Thu, 3 Mar 2011 12:52:30 +0000 (12:52 +0000)]
Tweak debug() to  use name of class in debug output

13 years agoFollowup r83141. Forgot to commit the hooks.txt update.
Daniel Friesen [Thu, 3 Mar 2011 11:00:08 +0000 (11:00 +0000)]
Followup r83141. Forgot to commit the hooks.txt update.

13 years agoReduce usage of $wgOut inside Skin.
Daniel Friesen [Thu, 3 Mar 2011 10:22:46 +0000 (10:22 +0000)]
Reduce usage of $wgOut inside Skin.

13 years ago* Rewrote ObjectCache.php to conform to the modern coding style, and to be less convo...
Tim Starling [Thu, 3 Mar 2011 09:37:37 +0000 (09:37 +0000)]
* Rewrote ObjectCache.php to conform to the modern coding style, and to be less convoluted about how CACHE_ANYTHING and CACHE_ACCEL are resolved. Moved most functionality to static members of a new ObjectCache class.
* Moved the global functions to GlobalFunctions.php, where they are now just convenience wrappers. Made them return non-references. Updated callers (none found in extensions).
* Added an advanced configuration method, $wgObjectCaches, which allows a lot more detail in the object cache configuration than $wgMainCacheType.
* Made all object cache classes derive from BagOStuff.
* Split the MWMemcached class into a generic client class and a MediaWiki-specific wrapper class. The wrapper class presents a simple BagOStuff interface to calling code, hiding memcached client internals, and will simplify the task of supporting the PECL extension.
* Added some extra constructor parameters to MWMemcached, configurable via $wgObjectCaches.
* Removed the *_multi() methods from BagOStuff, my grepping indicates that they are not used.
* Rewrote FakeMemCachedClient as a BagOStuff subclass, called EmptyBagOStuff.
* Added an optional "server" parameter to SQLBagOStuff. This allows the server holding the objectcache table to be different from the server holding the core DB.
* Added MultiWriteBagOStuff: a cache class which writes to multiple locations, and reads from them in a defined fallback sequence. This can be used to extend the cache space by adding disk-backed storage to existing in-memory caches.
* Made MWMemcached::get() return false on failure instead of null, to match the BagOStuff documentation and the other BagOStuff subclasses. Anything that was relying on it returning null would have already been broken with SqlBagOStuff.
* Fixed a bug in the memcached client causing keys with spaces or line breaks in them to break the memcached protocol, injecting arbitrary commands or parameters. Since the PECL client apparently also has this flaw, I implemented the fix in the wrapper class.
* Renamed BagOStuff::set_debug() to setDebug(), since we aren't emulating the memcached client anymore
* Fixed spelling error in MWMemcached: persistant -> persistent

13 years agoFixed patch from r33520
Aaron Schulz [Thu, 3 Mar 2011 06:28:43 +0000 (06:28 +0000)]
Fixed patch from r33520

13 years agoMore renames and splits for objectcache reorganisation.
Tim Starling [Thu, 3 Mar 2011 04:48:14 +0000 (04:48 +0000)]
More renames and splits for objectcache reorganisation.

13 years agoStart of ObjectCache reorganisation. Moved the object cache files to includes/objectc...
Tim Starling [Thu, 3 Mar 2011 04:38:17 +0000 (04:38 +0000)]
Start of ObjectCache reorganisation. Moved the object cache files to includes/objectcache/. Split BagOStuff.php into single-class files.

13 years agoAdd @fixme comments for undocumented options parameters
Brion Vibber [Thu, 3 Mar 2011 02:10:38 +0000 (02:10 +0000)]
Add @fixme comments for undocumented options parameters

13 years agoCode conventions, cross-browser fixes and JSHint validation
Krinkle [Wed, 2 Mar 2011 22:54:12 +0000 (22:54 +0000)]
Code conventions, cross-browser fixes and JSHint validation
; edit.js
* Creating the 'i' variable only once
* Defining winScroll before the if statements. This way when it's referenced later it will never trow an error about it being undefined.
* Moving checkSelectedText up. It was called before it's definition.
* Removed line with a loose variable on it (added in r59832)

13 years agoRevert r69907, r69908, r70264, r70296: introduces bug 27477.
Bryan Tong Minh [Wed, 2 Mar 2011 21:06:54 +0000 (21:06 +0000)]
Revert r69907, r69908, r70264, r70296: introduces bug 27477.
The previous situation is not very nice and this should be fixed properly, but is not so much of a priority it did work before. There are some long discussions on CR about this if anybody is interested in fixing this.

13 years agoPHPUnit target 'database' for db related tests
Antoine Musso [Wed, 2 Mar 2011 20:45:44 +0000 (20:45 +0000)]
PHPUnit target 'database' for db related tests

13 years agoremove wfVarDump() statement
Antoine Musso [Wed, 2 Mar 2011 20:41:51 +0000 (20:41 +0000)]
remove wfVarDump() statement

follow up r83110

13 years agoBug 2429 allow selection of associated namespace in recent changes
Antoine Musso [Wed, 2 Mar 2011 20:40:40 +0000 (20:40 +0000)]
Bug 2429 allow selection of associated namespace in recent changes

Done by adding yet another checkbox in Special:RecentChanges. The feature
also support namespace inversion.  For example, if you have selected
the TALK namespace with inversion and associated namespace, you will
be shown any changes which is not NS_MAIN or NS_TALK.

Tests:

SpecialRecentchanges tests only this feature. I had to filter out
the rc_timestamp condition which might cause trouble if the test
suite is run on another day. A better solution remains to be implemented.

13 years agodoxygen can use @code !
Antoine Musso [Wed, 2 Mar 2011 20:28:32 +0000 (20:28 +0000)]
doxygen can use @code !

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 2 Mar 2011 20:25:35 +0000 (20:25 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-02 20:08:00 UTC)

13 years ago(bug 27809) Check for availability of imagerotate function before using it
Bryan Tong Minh [Wed, 2 Mar 2011 19:42:30 +0000 (19:42 +0000)]
(bug 27809) Check for availability of imagerotate function before using it

13 years agoFollow-up r83080: forogt to commit this (oops)
Alexandre Emsenhuber [Wed, 2 Mar 2011 13:13:51 +0000 (13:13 +0000)]
Follow-up r83080: forogt to commit this (oops)

13 years agoFix typo in @param comment
Sam Reed [Wed, 2 Mar 2011 13:07:15 +0000 (13:07 +0000)]
Fix typo in @param comment

Add type to CookieJar

Define $result before loop

13 years agoPer Platonides, fix for r82686: make ApiUploadTest work again
Alexandre Emsenhuber [Wed, 2 Mar 2011 12:52:47 +0000 (12:52 +0000)]
Per Platonides, fix for r82686: make ApiUploadTest work again

Added option request parameter to User::editToken() and User::matchEditToken() and use them where possible from the api.
Also removed $_SESSION usage since it's no longer needed

13 years agofix typo from r83073
Sam Reed [Wed, 2 Mar 2011 10:59:30 +0000 (10:59 +0000)]
fix typo from r83073

13 years agoDocumentation, braces, "and" -> "&&"
Sam Reed [Wed, 2 Mar 2011 10:57:55 +0000 (10:57 +0000)]
Documentation, braces, "and" -> "&&"

13 years ago(follow-up r80554) If person typed max amount in edit summary, backspace didn't work...
Brian Wolff [Wed, 2 Mar 2011 03:57:58 +0000 (03:57 +0000)]
(follow-up r80554) If person typed max amount in edit summary, backspace didn't work on some versions of opera

This still doesn't recognize all special keys on affected versions of opera as
keystrokes to ignore. I don't think this is a big issue, since backspace
is recognized (which is the only key thats really important), newer
versions of Opera should not be affected, and (based on a skim of the jQuery
site) it appears that if we ever upgrade our version of jQuery, the issue
might go away. (not 100% sure about that last part)

Originally when i was testing this code, I tested in all sorts of browsers
that it would stop people from putting more text in. I never tested that
it would allow backspaces (I now have, opera was the only affected one where
it didn't work).

Thanks to Alex Smotrov for reporting issue.

13 years agoDisable $wgExperimentalHtmlIds again by default
Aryeh Gregor [Wed, 2 Mar 2011 01:35:33 +0000 (01:35 +0000)]
Disable $wgExperimentalHtmlIds again by default

See bug 27733, bug 27694, bug 27474.  Reverts r70526.  Should be
backported to 1.17 (along with removing r70526's RELEASE-NOTES).  Can be
ported to WMF as well, but it's kind of trivial to replicate in
LocalSettings.php, so doesn't really have to be.

13 years ago* (bug 27761) Fix regression: pages with Esperanto titles containing convertible...
Brion Vibber [Tue, 1 Mar 2011 21:20:40 +0000 (21:20 +0000)]
* (bug 27761) Fix regression: pages with Esperanto titles containing convertible character sequences became unreachable

Fixes regression from r70871 -- a comparison originally made against the raw GET 'title' variable was changed to use WebRequest::getText() instead, which performs character conversion. This caused infinite redirect loops for titles containing convertible forms such as "ux", which in a recodable field would be round-tripped via "uxx".
This fix changes the comparison to use WebRequest::getVal(), restoring the original direct comparison and avoiding the redirect loops.

(Another nice reminder that this old system with the pseudo charset conversion is obsolete -- it should be replaced with a more modern browser-based input conversion that can apply to all text input fields.)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 1 Mar 2011 21:06:54 +0000 (21:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-01 21:01:00 UTC)

13 years agoFix help wordwrap in namespaceDupes.php
Antoine Musso [Tue, 1 Mar 2011 20:44:15 +0000 (20:44 +0000)]
Fix help wordwrap in namespaceDupes.php

help wordwrap is handled by the Maintenance class automatically.
Tabulations and new line are not needed anymore.

13 years agogeneric and specific parameters separated in help output
Antoine Musso [Tue, 1 Mar 2011 20:42:55 +0000 (20:42 +0000)]
generic and specific parameters separated in help output

Play with array_diff_key to output Maintenance class parameters separately
from the script specific parameters which are shown below. Will hopefully
make easier to find out in the list of supported parameters.

Example usage with maintenance/attachLatest.php:

$ php maintenance/attachLatest.php --help

Fix page_latest entries in the page table

Usage: php attachLatest.php [--conf|--dbpass|--dbuser|--fix|--globals|--help|--memory-limit|--quiet|--server|--wiki]

Generic maintenance parameters:
    --help: Display this help message
    --quiet: Whether to supress non-error output
    --conf: Location of LocalSettings.php, if not default
    --wiki: For specifying the wiki ID
    --globals: Output globals at the end of processing for debugging
    --memory-limit: Set a specific memory limit for the script, "max"
        for no limit or "default" to avoid changing it
    --server: The protocol and server name to use in URLs, e.g.
        http://en.wikipedia.org. This is sometimes necessary because server name
        detection may fail in command line scripts.

Script dependant parameters:
    --dbuser: The DB user to use for this script
    --dbpass: The password to use for this script

Script specific parameters:
    --fix: Actually fix the entries, will dry run otherwise

$

Commit best viewed by ignoring white spaces:
 svn diff -x -bu maintenance/Maintenance.php

13 years agoFollowup r83029, message key fixes
Chad Horohoe [Tue, 1 Mar 2011 18:49:12 +0000 (18:49 +0000)]
Followup r83029, message key fixes

13 years ago(bug 12070) After Installation MySQL was blocked. GRANT with IDENTIFIED BY will overw...
Chad Horohoe [Tue, 1 Mar 2011 18:46:16 +0000 (18:46 +0000)]
(bug 12070) After Installation MySQL was blocked. GRANT with IDENTIFIED BY will overwrite the password of an existing user silently, moving CREATE USER and GRANT to two separate operations so we can handle the different errors. Put in HISTORY, needs backporting with RELEASE-NOTES

13 years agoKill all other uses of $wgHooks in includeExtensions() other than LoadExtensionSchema...
Chad Horohoe [Tue, 1 Mar 2011 17:54:15 +0000 (17:54 +0000)]
Kill all other uses of $wgHooks in includeExtensions() other than LoadExtensionSchemaUpdates (which is the *only* one we want). People do stupid stuff in places like ParserFirstCallInit, and we don't want to risk them doing something like opening a DB connection or other things that are gonna fail

13 years agoSkip site stats insertion if theres already a row. Happens if install fails part...
Chad Horohoe [Tue, 1 Mar 2011 17:16:45 +0000 (17:16 +0000)]
Skip site stats insertion if theres already a row. Happens if install fails part-way and then reattempts

13 years ago* forgot about those ...
Jure Kajzer [Tue, 1 Mar 2011 13:58:50 +0000 (13:58 +0000)]
* forgot about those ...

13 years ago* OracleInstaller now also supports installation with (requested by Tim):
Jure Kajzer [Tue, 1 Mar 2011 13:50:52 +0000 (13:50 +0000)]
* OracleInstaller now also supports installation with (requested by Tim):
** preexisting account
** privileged account into a restricted account
* DatabaseOracle fixed a fixme (made by Reedy)

13 years agoActiveAbstracts needs translate (used in abstracts production for xml dumps, the...
Ariel Glenn [Tue, 1 Mar 2011 13:36:25 +0000 (13:36 +0000)]
ActiveAbstracts needs translate (used in abstracts production for xml dumps, the alternative, autoConvert(), does a lot more work)

13 years agoMissing line break in wfDebug() call
Alexandre Emsenhuber [Tue, 1 Mar 2011 08:55:13 +0000 (08:55 +0000)]
Missing line break in wfDebug() call

13 years agoPer Reedy, fix for r82034: forgot to change a wfGetCacheNotice() call (and also chang...
Alexandre Emsenhuber [Tue, 1 Mar 2011 08:52:38 +0000 (08:52 +0000)]
Per Reedy, fix for r82034: forgot to change a wfGetCacheNotice() call (and also changed a comment)

13 years agosvn:eol-style native
Alexandre Emsenhuber [Tue, 1 Mar 2011 08:49:36 +0000 (08:49 +0000)]
svn:eol-style native

13 years ago* fixed INDEX change (i missed that one)
Jure Kajzer [Tue, 1 Mar 2011 07:40:53 +0000 (07:40 +0000)]
* fixed INDEX change (i missed that one)

13 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Tue, 1 Mar 2011 01:03:18 +0000 (01:03 +0000)]
Localisation updates from translatewiki.net.

13 years ago(bug 27785) Fallback language for Kabardian (kbd) is English now.
Purodha B Blissenbach [Mon, 28 Feb 2011 23:49:53 +0000 (23:49 +0000)]
(bug 27785) Fallback language for Kabardian (kbd) is English now.

13 years agoDon't allow user to create a Project namespace that conflicts with existing namespaces
Chad Horohoe [Mon, 28 Feb 2011 23:15:14 +0000 (23:15 +0000)]
Don't allow user to create a Project namespace that conflicts with existing namespaces

13 years agoFollowup to r82874, restore lost edits
OverlordQ [Mon, 28 Feb 2011 21:57:56 +0000 (21:57 +0000)]
Followup to r82874, restore lost edits

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 28 Feb 2011 21:27:29 +0000 (21:27 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-28 21:08:00 UTC)

13 years agoClosing tags in jQuery-element creation. Bug in jQuery, using the shortcut doens...
Krinkle [Mon, 28 Feb 2011 21:20:23 +0000 (21:20 +0000)]
Closing tags in jQuery-element creation. Bug in jQuery, using the shortcut doens't work in IE8, it needs to be <open></close>

13 years agoFormOptions: adds doc & tests
Antoine Musso [Mon, 28 Feb 2011 20:58:34 +0000 (20:58 +0000)]
FormOptions: adds doc & tests

13 years agoRm nonstandard and redundant styles for Special:SpecialPages; really no need for...
Happy-melon [Mon, 28 Feb 2011 18:43:05 +0000 (18:43 +0000)]
Rm nonstandard and redundant styles for Special:SpecialPages; really no need for them, plus using an out-of-order header level is bad for accessibility.

13 years agogenerate caller graphs in doxygen
Antoine Musso [Mon, 28 Feb 2011 17:33:03 +0000 (17:33 +0000)]
generate caller graphs in doxygen

13 years agoCommit some uncommited documentation from my w/c
Sam Reed [Mon, 28 Feb 2011 16:37:34 +0000 (16:37 +0000)]
Commit some uncommited documentation from my w/c