lhc/web/wiklou.git
12 years agoFollowup r92396
Sam Reed [Sun, 17 Jul 2011 16:51:11 +0000 (16:51 +0000)]
Followup r92396

More modules documented, pretty much only action=query&list= to be done (ie links added where documentation pages exist already)

12 years agoFollowup r92396, add help urls for most of the core (non query) modules
Sam Reed [Sun, 17 Jul 2011 16:38:24 +0000 (16:38 +0000)]
Followup r92396, add help urls for most of the core (non query) modules

12 years agoFollowup r92396 rename method, fix boolean comparison that was supposed to be inverte...
Sam Reed [Sun, 17 Jul 2011 16:23:29 +0000 (16:23 +0000)]
Followup r92396 rename method, fix boolean comparison that was supposed to be inverted when de-indenting

12 years ago* (bug 28817) Add reference help page link to API Modules
Sam Reed [Sun, 17 Jul 2011 16:18:09 +0000 (16:18 +0000)]
* (bug 28817) Add reference help page link to API Modules

Start of this bug, fleshed out base code implemented, plus a few key modules (will finish rest up soon)

Tweaked/improved/updated some documentation as I went through also

12 years agoFlesh out some TODO documentation from onwiki pages
Sam Reed [Sun, 17 Jul 2011 15:48:51 +0000 (15:48 +0000)]
Flesh out some TODO documentation from onwiki pages

12 years agoFix for r92388: that was the wrong method
Alexandre Emsenhuber [Sun, 17 Jul 2011 09:33:34 +0000 (09:33 +0000)]
Fix for r92388: that was the wrong method

12 years ago* Changed Special:RecentChanges and Special:RecentChangesLinked to use the local...
Alexandre Emsenhuber [Sun, 17 Jul 2011 09:25:50 +0000 (09:25 +0000)]
* Changed Special:RecentChanges and Special:RecentChangesLinked to use the local context instead of global variables
* Added context to ChangesList
* Added new factory for ChangesList and subclasses in ChangesList::newFromContext() and modified ChangesList::newFromUser() to call it with the main context since anyway User::getSkin() return the Skin from the main context, so this won't change anything but the User::getOption() call
* Updates Special:RecentChanges and Special:Watchlist to use that new function
* Call Linker methods statically
* Use Linker::linkKnown() instead of Linker::link() where possible
* In Special:Watchlist: Use wfMessage() instead of OutputPage::addWikiMsgArray() with the third parameter

12 years ago* Expanded documentation, added GPL header and changed the @author tag to use my...
Alexandre Emsenhuber [Sun, 17 Jul 2011 07:47:13 +0000 (07:47 +0000)]
* Expanded documentation, added GPL header and changed the @author tag to use my real name
* Made RequestContext implement IContextSource
* Added ContextSource::msg()
* Made ContextSource fall back to RequestContext::getMain() when there's no context set

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 16 Jul 2011 20:06:00 +0000 (20:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-16 19:52:00 UTC)
Ping r92057: Full export of core and ext-installer

12 years ago* Use standard method to check user permissions
Alexandre Emsenhuber [Sat, 16 Jul 2011 19:31:18 +0000 (19:31 +0000)]
* Use standard method to check user permissions
* Directly throw an ReadOnlyError instead of calling OutputPage::readOnlyPage()
* In Special:Block: don't let user think the error is temporary if he doesn't have right and the database is locked, instead check permissions first and then the database lock

12 years ago* Use wfMessage() instead of OutputPage::addWikiMsgArray() with the third parameter
Alexandre Emsenhuber [Sat, 16 Jul 2011 19:19:01 +0000 (19:19 +0000)]
* Use wfMessage() instead of OutputPage::addWikiMsgArray() with the third parameter
* In EditPage.php: call Linker methods statically

12 years agoFirst steps for bug 14801: add backend support for per-namespace permissions to core...
Bryan Tong Minh [Sat, 16 Jul 2011 16:09:00 +0000 (16:09 +0000)]
First steps for bug 14801: add backend support for per-namespace permissions to core. This extends $wgGroupPermissions syntax from $wgGroupPermissions[$group][$right] = bool to $wgGroupPermissions[$group][$right] = array( NS_X => bool ). This is safely backwards compatible; the booleans are still fully supported, and any unset namespace will default to false.

* User::getRights(), User::isAllowed() and User::getGroupPermissions now optionally accept a namespace parameter. If not set, it will check whether the user has the right for all namespaces.
* Anything that uses Title::getUserPermissionsErrorsInternal() automatically supports per-namespace permissions. This includes Title::getUserPermissionsErrors and Title::(quick)UserCan.
* Fix tests that set User::mRights

The next step would be to change all User::isAllowed() to Title::quickUserCan or pass the namespace to User::isAllowed().

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Sat, 16 Jul 2011 13:36:37 +0000 (13:36 +0000)]
* Use local context instead of global variables
* Call Linker methods statically
* Changed some messages to replace parameters before parsing where possible
* Changed usage of OutputPage::addWikiMsgArray() with third parameter to wfMessage()

12 years agoArray indexes start from zero
Niklas Laxström [Sat, 16 Jul 2011 11:40:28 +0000 (11:40 +0000)]
Array indexes start from zero

12 years agoRemove 'dk' from dummy language codes, it was removed in r71693.
Robin Pepermans [Sat, 16 Jul 2011 00:14:33 +0000 (00:14 +0000)]
Remove 'dk' from dummy language codes, it was removed in r71693.

12 years agoSplit MessagesKs into ks-arab and ks-deva, as Kashmiri is written in two scripts...
Robin Pepermans [Fri, 15 Jul 2011 23:28:30 +0000 (23:28 +0000)]
Split MessagesKs into ks-arab and ks-deva, as Kashmiri is written in two scripts. The MessagesKs file contained rtl = true, which is only for the Arab script, and the digit transform table which was for the Devanagari script.
Added one lonely message from kswiki.

Also specified comment of Quechua to Southern Quechua, as it is the variety used in MessagesQu and on quwiki.

12 years agosync up RELEASE-NOTES
Sam Reed [Fri, 15 Jul 2011 23:18:38 +0000 (23:18 +0000)]
sync up RELEASE-NOTES

12 years agohtml:key should be self-closing in jquery.localize unit tests.
Krinkle [Fri, 15 Jul 2011 22:57:57 +0000 (22:57 +0000)]
html:key should be self-closing in jquery.localize unit tests.

More IE6, 7 and 8 fixes for jquery.localize unit tests.

html:key should be self-closing. This was in most tests, but accidentally forgotten in a few. Other browsers are looser on this, but IE is very strict about it.

12 years agoRemoving deprecated <msg /> support in jquery.localize. Maintaing it is a PITA and...
Krinkle [Fri, 15 Jul 2011 22:54:28 +0000 (22:54 +0000)]
Removing deprecated <msg /> support in jquery.localize. Maintaing it is a PITA and it doesn't work properly in IE6, 7 and 8.

<html:msg /> has been the new format for a while.

12 years agoIncreasing timeout duration. Some TestSwarm participants appear to have slower virtua...
Krinkle [Fri, 15 Jul 2011 22:43:32 +0000 (22:43 +0000)]
Increasing timeout duration. Some TestSwarm participants appear to have slower virtual machines and/or may have network slowness. 1.5 second was a bit too short anyway. This will reduce false positives.

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Fri, 15 Jul 2011 20:56:46 +0000 (20:56 +0000)]
* Use local context instead of global variables
* Call Linker methods satically
* Use wfMessage() instead of OutputPage::addWikiMsgArray() with a third parameter

12 years agoRemoved unused function
Aaron Schulz [Fri, 15 Jul 2011 20:47:37 +0000 (20:47 +0000)]
Removed unused function

12 years agor92288 : Missed second arg to inArray
Leo Koppelkamm [Fri, 15 Jul 2011 20:24:00 +0000 (20:24 +0000)]
r92288 : Missed second arg to inArray

12 years agoajaxCategories fixes:
Krinkle [Fri, 15 Jul 2011 19:25:16 +0000 (19:25 +0000)]
ajaxCategories fixes:
* Partial revert of r92264. mw.ajaxCategories has nothing to do with mediawiki.util.init, moved into separate initiation module, only loaded when ajax categories is enabled.
* Removing instantiation from the script. mw.ajaxCategories is now a public accessible constructor
* Fix Uncaught ReferenceError: wgUserGroups is not defined
($wgLegacyJavaScriptGlobals = false;)
* Renamimng stripIllegals() to clean(), adding '#' to the regex as those are not allowed either.
* Combining var statements by separating them with comma's ( var foo, bar, baz; ) instead of "var foo; var bar; var baz;"svn up
* Using dot.notation for objects instead of array-like['string'] keys
* Whitespace conventions
* Using inArray utility instead of indexOf (cross-browser support, mostly IE6)
** $.inArray uses Array.prototype.indexOf if available, otherwise fallback to a loop. mw.util.inArray is a wrapper around $.inArray to return a boolean value (since inArray/indexOf may return 0)
* Don't use $( '#bodyContent' ) (skin specific) but mw.util.$content
* Using mw.Title
* Re-using helper functions from the outer-closure instead of re-declaring them privately for every instance again (performance!)

Follows-up: r92112, r92151, r92264

12 years agoRELEASE-NOTES for r92279
Bryan Tong Minh [Fri, 15 Jul 2011 19:11:24 +0000 (19:11 +0000)]
RELEASE-NOTES for r92279

12 years ago(bug 28762) Resizing to specified height broken for very thin images
Bryan Tong Minh [Fri, 15 Jul 2011 19:03:40 +0000 (19:03 +0000)]
(bug 28762) Resizing to specified height broken for very thin images

Restructure and comment of ImageHandler::normaliseParams(). ImageHandler::normaliseParams() will now output both width/height as physicalWidth/Height, where width/height are the dimensions used by the browser, and physicalWidth/Height are the dimensions of the thumbnail that will be created. This allows keeping the use of unique dimensions for a specified thumbnail width, by forcing client side resizing of 1px-wide images with non corresponding height.
Also fixed a bug where the check for mustRender() was in an if statement where it should not have been.

12 years agoFix r92253
Leo Koppelkamm [Fri, 15 Jul 2011 18:34:09 +0000 (18:34 +0000)]
Fix r92253

12 years agoNo longer using the content hash as a file key. This solves a concurrency problem...
Ian Baker [Fri, 15 Jul 2011 18:33:31 +0000 (18:33 +0000)]
No longer using the content hash as a file key.  This solves a concurrency problem when multiple people use the same account to upload from the same set of files.  Each stashed file is now a unique and beautiful snowflake, and the content-based deduping that comes at the end of the process can sort it out.

12 years agoFix typo in r91154
Roan Kattouw [Fri, 15 Jul 2011 18:27:27 +0000 (18:27 +0000)]
Fix typo in r91154

12 years agoAjaxCategories: Making MultiEdit mores stable and getting rid of other bugs
Leo Koppelkamm [Fri, 15 Jul 2011 18:21:37 +0000 (18:21 +0000)]
AjaxCategories: Making MultiEdit mores stable and getting rid of other bugs

12 years agor92253 : readd useful changes
Leo Koppelkamm [Fri, 15 Jul 2011 18:19:10 +0000 (18:19 +0000)]
r92253 : readd useful changes

12 years agoAdd boolean inArray utility
Krinkle [Fri, 15 Jul 2011 18:10:38 +0000 (18:10 +0000)]
Add boolean inArray utility

12 years agobetter method descriptions
Ryan Kaldari [Fri, 15 Jul 2011 17:54:50 +0000 (17:54 +0000)]
better method descriptions

12 years agofollowup r92253: revert accidental commit of test code
Brion Vibber [Fri, 15 Jul 2011 17:34:39 +0000 (17:34 +0000)]
followup r92253: revert accidental commit of test code

12 years agoRevert r92238: partial addition of broken test cases to qunit test suite; loading...
Brion Vibber [Fri, 15 Jul 2011 17:29:17 +0000 (17:29 +0000)]
Revert r92238: partial addition of broken test cases to qunit test suite; loading of modules with uninitialized data triggers errors in console and marks the entire revision black in TestSwarm.

12 years agoAdd words.txt for us Windows users. This is a random selection of 1000 words from...
Bryan Tong Minh [Fri, 15 Jul 2011 17:13:24 +0000 (17:13 +0000)]
Add words.txt for us Windows users. This is a random selection of 1000 words from gnuwin32 miscfiles package
Fail more gracefully in RandomImageGenerator

12 years agoSlightly more informative error message when passed a bogus key (rather than property...
Chad Horohoe [Fri, 15 Jul 2011 16:59:38 +0000 (16:59 +0000)]
Slightly more informative error message when passed a bogus key (rather than property of non-object)

12 years agoStylize
Chad Horohoe [Fri, 15 Jul 2011 15:54:14 +0000 (15:54 +0000)]
Stylize

12 years agoFollow-up r79845: Fix rotation. Turns out that we need to pass the pre-rotation dimen...
Bryan Tong Minh [Fri, 15 Jul 2011 15:13:18 +0000 (15:13 +0000)]
Follow-up r79845: Fix rotation. Turns out that we need to pass the pre-rotation dimensions to convert.exe. Also added tests.

12 years agor92054 : Fix wordwrap by using inline-block. This has the nice sideeffect of fixing...
Leo Koppelkamm [Fri, 15 Jul 2011 15:06:58 +0000 (15:06 +0000)]
r92054 : Fix wordwrap by using inline-block. This has the nice sideeffect of fixing an Opera background image bug as well. Remove categories from print, they're not especially useful on paper. (Also give footer some space)

12 years agoPer Nikerabbit, follow-up to r92231: removed unreachable code
Alexandre Emsenhuber [Fri, 15 Jul 2011 14:28:24 +0000 (14:28 +0000)]
Per Nikerabbit, follow-up to r92231: removed unreachable code

12 years ago* maintenance script to switch FK references if using wgSharedDB
Jure Kajzer [Fri, 15 Jul 2011 12:44:31 +0000 (12:44 +0000)]
* maintenance script to switch FK references if using wgSharedDB

12 years agoAjaxCategories: move self init to mw.util.init; start with qunit
Leo Koppelkamm [Fri, 15 Jul 2011 11:12:07 +0000 (11:12 +0000)]
AjaxCategories: move self init to mw.util.init; start with qunit

12 years agoNS_MAIN can locally have subpages enabled
Antoine Musso [Fri, 15 Jul 2011 09:45:57 +0000 (09:45 +0000)]
NS_MAIN can locally have subpages enabled

This workaround test if any local change has been made, if so the test
will be skipped.

fu r82577

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Fri, 15 Jul 2011 08:42:25 +0000 (08:42 +0000)]
* Use local context instead of global variables
* Removed parameters that could be replaced by context
* Call Linker methods statically
* Removed two unused methods: countWatchlist() and showItemCount()
* The parameter of SpecialEditWatch::buildTools() is now unused

12 years agoFix for r92187
Chad Horohoe [Fri, 15 Jul 2011 05:32:57 +0000 (05:32 +0000)]
Fix for r92187

12 years agoFollowup r91672: remove commented-out reference to removed file (rtl.css)
Roan Kattouw [Fri, 15 Jul 2011 02:21:52 +0000 (02:21 +0000)]
Followup r91672: remove commented-out reference to removed file (rtl.css)

12 years agoFollow-up r92220: changed autoblock handling to use PerformRetroactiveAutoblock hook...
Aaron Schulz [Fri, 15 Jul 2011 00:48:02 +0000 (00:48 +0000)]
Follow-up r92220: changed autoblock handling to use PerformRetroactiveAutoblock hook instead of a global. Also made CheckUser always override autoblocks (no config).

12 years ago* Removed angry autoblock code - unused by anything
Aaron Schulz [Fri, 15 Jul 2011 00:05:50 +0000 (00:05 +0000)]
* Removed angry autoblock code - unused by anything
* Added $wgAutoblockHandlers variable for alternative autoblock handling functions
* Gave CheckUser a potential $wgAutoblockHandlers function (bug 29330)

12 years agoproperly handle the case where a file disappears during the uploadwizard process
Ian Baker [Thu, 14 Jul 2011 23:01:00 +0000 (23:01 +0000)]
properly handle the case where a file disappears during the uploadwizard process
remove database records for files that move out of the stash

12 years agofixed a condition where re-uploading a file that's already stashed causes breakage...
Ian Baker [Thu, 14 Jul 2011 21:33:09 +0000 (21:33 +0000)]
fixed a condition where re-uploading a file that's already stashed causes breakage.  This mirrors the previous session-based behavior as closely as possible.

12 years agoAjaxCategories: More interface polish
Leo Koppelkamm [Thu, 14 Jul 2011 20:48:01 +0000 (20:48 +0000)]
AjaxCategories: More interface polish

12 years agoKill AjaxFunctions.php. The only thing using this was FCKEditor, so I moved js_unesca...
Chad Horohoe [Thu, 14 Jul 2011 20:38:28 +0000 (20:38 +0000)]
Kill AjaxFunctions.php. The only thing using this was FCKEditor, so I moved js_unescape() over to it.
Roan: "So what does it do?"
Me: "Converts stuff encoded with JS's escape() back into a normal string, according to the docs."
Roan: "That sounds like a workaround for bad design"

12 years agoVarious cleanups to ExternalEdit. Documentation, code style, removed some unused...
Chad Horohoe [Thu, 14 Jul 2011 20:19:59 +0000 (20:19 +0000)]
Various cleanups to ExternalEdit. Documentation, code style, removed some unused variables, removed silly 'm' prefix, etc.

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 14 Jul 2011 20:12:43 +0000 (20:12 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-14 19:36:00 UTC)
Ping r92057: Full export of core and ext-installer

12 years agoUse the context's response for header() calls in checkMaxLag()
Chad Horohoe [Thu, 14 Jul 2011 17:48:41 +0000 (17:48 +0000)]
Use the context's response for header() calls in checkMaxLag()

12 years agoMade WikiPage::factory a bit more dummy proof
Aaron Schulz [Thu, 14 Jul 2011 17:39:04 +0000 (17:39 +0000)]
Made WikiPage::factory a bit more dummy proof

12 years agoFix expandableField.js dependencies
Leo Koppelkamm [Thu, 14 Jul 2011 17:26:32 +0000 (17:26 +0000)]
Fix expandableField.js dependencies

12 years agoAjaxCategories: Add basic hook functionality. Can be used by sites for stuff like...
Leo Koppelkamm [Thu, 14 Jul 2011 17:14:39 +0000 (17:14 +0000)]
AjaxCategories: Add basic hook functionality. Can be used by sites for stuff like {{uncategorized}} templates etc.

12 years agoAjaxCategories: Yay! MultiEdit mode working. May need more polish. Ping r92112
Leo Koppelkamm [Thu, 14 Jul 2011 16:00:07 +0000 (16:00 +0000)]
AjaxCategories: Yay! MultiEdit mode working. May need more polish. Ping r92112

12 years agoAjaxCategories:
Leo Koppelkamm [Thu, 14 Jul 2011 15:00:33 +0000 (15:00 +0000)]
AjaxCategories:
* Lay foundation for MultiEdit mode
* Add releasenotes
* Fix typo in function name
* Change error msg per CR
Ping r92062

12 years agor91949 : EditWatchlist assumed that action was always empty for view
Leo Koppelkamm [Thu, 14 Jul 2011 13:01:07 +0000 (13:01 +0000)]
r91949 : EditWatchlist assumed that action was always empty for view

12 years agoRestructure tab code of mediawiki.special.preferences.js . * 10 levels of indent...
Leo Koppelkamm [Thu, 14 Jul 2011 12:49:39 +0000 (12:49 +0000)]
Restructure tab code of mediawiki.special.preferences.js . * 10 levels of indent, really? * Follow up r91869: Instead of setting the title, and later parsing it out and setting id from it, just set the id directly. * Hashes are now in the form #prefsection-personal. This means that they now work in browser with deactivated JS as well.

12 years agor92054 : Remove leftover space
Leo Koppelkamm [Thu, 14 Jul 2011 11:42:14 +0000 (11:42 +0000)]
r92054 : Remove leftover space

12 years agoAjaxCategories:
Leo Koppelkamm [Thu, 14 Jul 2011 11:36:50 +0000 (11:36 +0000)]
AjaxCategories:
* Restructuring to allow both private and public functions/objects.
* Add an error when category alread present, instead of quitting silently.
* Add documentation to most functions.
* Remove hardcoded api.php (Thanks Krinkle)
Ping r92062

12 years ago* Fix r80248: login language links included a newline in the URL (%0D) so the links...
Robin Pepermans [Thu, 14 Jul 2011 01:13:11 +0000 (01:13 +0000)]
* Fix r80248: login language links included a newline in the URL (%0D) so the links didn't work
* (Also make linkKnown() to use Linker)

12 years agoFixes for jquery.localize unit test IE6,IE7,IE8:
Krinkle [Wed, 13 Jul 2011 23:57:11 +0000 (23:57 +0000)]
Fixes for jquery.localize unit test IE6,IE7,IE8:
- localize doesn't offically support "self" modification, only for children via find(). Which is why most were wrapped in a <div> (otherwise find('[title-msg]') won't find it). Now adding a <div> around the others as well to be consistent, and hopefully fix the breakage on testswarm in IE6-8

12 years agoFix broken test introduced in r92113 for Gecko-browsers.
Krinkle [Wed, 13 Jul 2011 23:31:48 +0000 (23:31 +0000)]
Fix broken test introduced in r92113 for Gecko-browsers.
- Checking text() and attr() separately instead of comparing the resulting HTML (which was problematic due to browsers putting attributes in a different order)

12 years ago(bug 26360) $wgSessionHandler was overriding system settings unconditionally. Regress...
Chad Horohoe [Wed, 13 Jul 2011 23:26:52 +0000 (23:26 +0000)]
(bug 26360) $wgSessionHandler was overriding system settings unconditionally. Regression I introduced a little over 2 years ago with r49370.

12 years agoFollow-up r92068: add 'qqx' to dummy language codes per Nikerabbit
Robin Pepermans [Wed, 13 Jul 2011 23:02:22 +0000 (23:02 +0000)]
Follow-up r92068: add 'qqx' to dummy language codes per Nikerabbit

12 years agoAvoid notice on profile close errors
Aaron Schulz [Wed, 13 Jul 2011 22:59:55 +0000 (22:59 +0000)]
Avoid notice on profile close errors

12 years agoFixed profiling error
Aaron Schulz [Wed, 13 Jul 2011 22:57:04 +0000 (22:57 +0000)]
Fixed profiling error

12 years agoNew jquery.getAttrs module
Krinkle [Wed, 13 Jul 2011 22:46:17 +0000 (22:46 +0000)]
New jquery.getAttrs module
- A cross-browser compatible way of getting a direct key/value object of attributes
- Will help making comparisons such as in r92113 easier and work cross-browser

12 years agoUnit tests for jquery.localize
Krinkle [Wed, 13 Jul 2011 22:37:51 +0000 (22:37 +0000)]
Unit tests for jquery.localize
(Follow-up r92069)

Also fixing a bug in jquery.localize. Previously it did mw.msg(key, [p1, p2, ...]); (passing an array as second argument), however mw.msg doesn't take an array as second argument, instead the second argument is the first in a list of optional variadic arguments. (like mw.msg(key, p1, p2, ..);

In cases were only 1 variable is passed, this didn't brake the test as [p1].toString() === p1. Fixing by using .apply instead and creating an array of arguments, starting with the key (unshifted) and if available adding parameters.

All these tests appear to be broken in Gecko-browsers because it uses a different attribute order (WebKit moslty in order of touch, Gecko mostly alphabetical, Trident/Presto engine different too). They are reported because the elements are compared as strings. I'll fix this in a better way when I think of one (soon!)

12 years agoRewrite ajaxCategories for ResourceLoader. Add some missing functionality (edit categ...
Leo Koppelkamm [Wed, 13 Jul 2011 22:36:03 +0000 (22:36 +0000)]
Rewrite ajaxCategories for ResourceLoader. Add some missing functionality (edit categories and more). Move styles from shared.css into own stylesheet. Fix regex bugs

12 years agoReadd ajaxCategories from r58959 . This is just a preparation for my next commit...
Leo Koppelkamm [Wed, 13 Jul 2011 22:15:11 +0000 (22:15 +0000)]
Readd ajaxCategories from r58959 . This is just a preparation for my next commit, so that the file's history is preserved

12 years ago(bug 29558) Add config var to disable update.php. Did this by checking $wgMiserMode...
Chad Horohoe [Wed, 13 Jul 2011 22:14:19 +0000 (22:14 +0000)]
(bug 29558) Add config var to disable update.php. Did this by checking $wgMiserMode and bailing unless --iknowwhatimdoing

12 years agoPointless w/s tweaks :)
Aaron Schulz [Wed, 13 Jul 2011 22:11:53 +0000 (22:11 +0000)]
Pointless w/s tweaks :)

12 years ago* Removed function_exists check in MWTidy, proc_open is on any PHP at out minimum...
Aaron Schulz [Wed, 13 Jul 2011 22:10:20 +0000 (22:10 +0000)]
* Removed function_exists check in MWTidy, proc_open is on any PHP at out minimum PHP version
* Show warnings if we can't run tidy for some reason (bug 27889)
* Moved $wgDebugTidy check (changing the value from null would break MWTidy::tidy())
* Fixed some outdated comment
* Made a few w/s changes

12 years ago* Added some tests for FauxResponse class
Alexandre Emsenhuber [Wed, 13 Jul 2011 20:16:14 +0000 (20:16 +0000)]
* Added some tests for FauxResponse class
* Made some fixes to that class and removed one unused variable

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 13 Jul 2011 19:43:11 +0000 (19:43 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-13 19:30:00 UTC)
Ping r92057: Full export of core and ext-installer

12 years agoAdded 'fromdbmaster' param option to WikiPage::loadPageData()
Aaron Schulz [Wed, 13 Jul 2011 19:14:18 +0000 (19:14 +0000)]
Added 'fromdbmaster' param option to WikiPage::loadPageData()

12 years agoAdded us_status column for future expansion re Bryan's suggestion
Ian Baker [Wed, 13 Jul 2011 19:08:51 +0000 (19:08 +0000)]
Added us_status column for future expansion re Bryan's suggestion
Implemented changes suggested in code review on r92009:
 constructor bug handling passed repo/stash
 up-to-date timestamp generation
 fetching db handle from repo
 iterating over select results according to convention
 changed uploadstash.us_media_type to enum to mirror image.img_media_type
 removed (most) new references to $wgUser, instead using ApiBase::createContext to find the user

12 years ago* (bug 29808) Special:PasswordRest now sorts into the 'users' section on Special...
Brion Vibber [Wed, 13 Jul 2011 18:38:57 +0000 (18:38 +0000)]
* (bug 29808) Special:PasswordRest now sorts into the 'users' section on Special:Specialpages

One-line patch by Rusty Burchfield - https://bugzilla.wikimedia.org/attachment.cgi?id=8771

12 years ago* Changed MediaWiki:main to use WikiPage
Aaron Schulz [Wed, 13 Jul 2011 18:30:47 +0000 (18:30 +0000)]
* Changed MediaWiki:main to use WikiPage
* Cleaned up MediaWiki function visibilities

12 years ago* Broke long Wiki.php lines
Aaron Schulz [Wed, 13 Jul 2011 18:05:44 +0000 (18:05 +0000)]
* Broke long Wiki.php lines
* Added getValueNames() function to WebRequest.php

12 years agoFollow-up r92068: svn:eol-style:native, and use round bracket
Robin Pepermans [Wed, 13 Jul 2011 17:58:27 +0000 (17:58 +0000)]
Follow-up r92068: svn:eol-style:native, and use round bracket

12 years agojquery.localize:
Krinkle [Wed, 13 Jul 2011 17:57:30 +0000 (17:57 +0000)]
jquery.localize:
* Added support for message parameters in jquery.localize since I needed that in order to replace $1 with sitename in MoodBar.

See:
Bug 29868 - Add support for passing parameters to mw.msg in jquery.localize

12 years ago(bug 15802) An easy way to look up messages: language qqx which returns the message...
Robin Pepermans [Wed, 13 Jul 2011 17:46:13 +0000 (17:46 +0000)]
(bug 15802) An easy way to look up messages: language qqx which returns the message keys
(It doesn't show up in preferences, but you can use ?uselang=qqx)

Patch by Conrad Irwin (slightly modified)

12 years agoFix for r85876 by doing away with a potentially invalid user name parameter behind...
Purodha B Blissenbach [Wed, 13 Jul 2011 15:57:26 +0000 (15:57 +0000)]
Fix for r85876 by doing away with a potentially invalid user name parameter behind slash in Special:EmailUser

12 years agoFollow-up r92054: dir attributes are no longer needed (displays it incorrectly when...
Robin Pepermans [Wed, 13 Jul 2011 13:33:37 +0000 (13:33 +0000)]
Follow-up r92054: dir attributes are no longer needed (displays it incorrectly when user direction != content direction)

12 years agoFollowup r92012: Fix grammar, update meintenance scripts
Raimond Spekking [Wed, 13 Jul 2011 13:28:37 +0000 (13:28 +0000)]
Followup r92012: Fix grammar, update meintenance scripts

12 years ago[bug 29737] "MediaWiki:Qbsettings-directionality" should refer to script, not language.
Purodha B Blissenbach [Wed, 13 Jul 2011 13:10:35 +0000 (13:10 +0000)]
[bug 29737] "MediaWiki:Qbsettings-directionality" should refer to script, not language.

12 years ago(bug 120781) Move 'mainpagetext' messages to installer's .i18n file.
Purodha B Blissenbach [Wed, 13 Jul 2011 11:53:04 +0000 (11:53 +0000)]
(bug 120781) Move 'mainpagetext' messages to installer's .i18n file.

12 years agoRender category links as an HTML list. Bug 12261. Based on patch by Thana & Bergi...
Leo Koppelkamm [Wed, 13 Jul 2011 10:41:21 +0000 (10:41 +0000)]
Render category links as an HTML list. Bug 12261. Based on patch by Thana & Bergi. It's removing the textual  pipe separator, wrapping the links inside li elements and adding a left 1px border as separator. This makes it much easier to manipulate the list via JS or CSS and is also semantically correct

12 years agoForgot to change my default header, followup r92045
Chad Horohoe [Wed, 13 Jul 2011 01:55:49 +0000 (01:55 +0000)]
Forgot to change my default header, followup r92045

12 years agoAdd some tests for wfExpandUrl. Definitely not complete (needs some for protocol...
Chad Horohoe [Wed, 13 Jul 2011 01:54:40 +0000 (01:54 +0000)]
Add some tests for wfExpandUrl. Definitely not complete (needs some for protocol relativeness)

12 years agoPer wikitech-l, run a bunch of URLs in the API output through wfExpandUrl(), so they...
Roan Kattouw [Wed, 13 Jul 2011 01:27:07 +0000 (01:27 +0000)]
Per wikitech-l, run a bunch of URLs in the API output through wfExpandUrl(), so they become fully-qualified even if they were originally protocol-relative

12 years agoAdded index for abandoned uploads maintenance script
Ian Baker [Wed, 13 Jul 2011 00:38:04 +0000 (00:38 +0000)]
Added index for abandoned uploads maintenance script

12 years agoUse wfUrlProtocols() in ApiFormatBase instead of simply imploding $wgUrlProtocols...
Roan Kattouw [Wed, 13 Jul 2011 00:27:40 +0000 (00:27 +0000)]
Use wfUrlProtocols() in ApiFormatBase instead of simply imploding $wgUrlProtocols and expecting that to work