lhc/web/wiklou.git
13 years agoRevert r85324 (making links grey for rev-del'd info). Per CR: grey is a bad color...
Chad Horohoe [Tue, 28 Jun 2011 18:35:37 +0000 (18:35 +0000)]
Revert r85324 (making links grey for rev-del'd info). Per CR: grey is a bad color for links.

13 years agoAdded some GPL headers
Alexandre Emsenhuber [Tue, 28 Jun 2011 18:21:59 +0000 (18:21 +0000)]
Added some GPL headers

13 years agoper r90984 CR, cleaner this way
Krinkle [Tue, 28 Jun 2011 18:17:49 +0000 (18:17 +0000)]
per r90984 CR, cleaner this way

13 years agomodule name is not shortened
Krinkle [Tue, 28 Jun 2011 17:57:56 +0000 (17:57 +0000)]
module name is not shortened

13 years agomw.special.recentchanges fixes:
Krinkle [Tue, 28 Jun 2011 17:56:56 +0000 (17:56 +0000)]
mw.special.recentchanges fixes:
- Partial self-revert of r90982 (binding and triggering must not be chained, as the calling function refers to the variable we're setting)
- The Qunit tests pass now :)

Follows up: r90943 r90960 r90968 r90980 r90982

13 years agomw.special.recentchanges fixes:
Krinkle [Tue, 28 Jun 2011 17:40:06 +0000 (17:40 +0000)]
mw.special.recentchanges fixes:
- using mw globally directly
- ID-selectors
- JS Effeciency in mw.special.rc.init (chaining instead of re-getting from this.select)
- passing function by reference instead of calling inside a new anonymous function
- marking checkboxes a private/local variable
- whitespace conventions

Follows up: r90943 r90960 r90968 r90980

13 years ago* Fixed documentation
Alexandre Emsenhuber [Tue, 28 Jun 2011 17:20:16 +0000 (17:20 +0000)]
* Fixed documentation
* Added GPL header

13 years agoUpdate qunit test runner includes for mediawiki.special.js move in r90968
Brion Vibber [Tue, 28 Jun 2011 17:17:03 +0000 (17:17 +0000)]
Update qunit test runner includes for mediawiki.special.js move in r90968

13 years agoMove mediawiki.special.js to the correct directory. Followup r90941, r90960
Roan Kattouw [Tue, 28 Jun 2011 15:24:38 +0000 (15:24 +0000)]
Move mediawiki.special.js to the correct directory. Followup r90941, r90960

13 years agoFix r90943: redefined mediawiki.special module that had already been added in r83789...
Roan Kattouw [Tue, 28 Jun 2011 14:28:11 +0000 (14:28 +0000)]
Fix r90943: redefined mediawiki.special module that had already been added in r83789 (!), broke loading of special page-specific CSS by addModuleStyles( 'mediawiki.special' ) . Bug originally reported by Nikerabbit as lack of CSS on Special:Search on TranslateWiki

13 years agoRemoved raw Article->field accessing
Aaron Schulz [Tue, 28 Jun 2011 14:10:55 +0000 (14:10 +0000)]
Removed raw Article->field accessing

13 years agoRevert r86623: merging Serbian language improvements to trunk. Per CR: this needs...
Chad Horohoe [Tue, 28 Jun 2011 12:00:04 +0000 (12:00 +0000)]
Revert r86623: merging Serbian language improvements to trunk. Per CR: this needs some tests, and I really don't know what's going on here well enough to write them :)

13 years agoDisable ns selector checkboxes when 'all' namespace is selected
Antoine Musso [Tue, 28 Jun 2011 06:40:49 +0000 (06:40 +0000)]
Disable ns selector checkboxes when 'all' namespace is selected
* based on an idea by Aaron on r90866
* comes with QUnit test
* expect the special 'all' namespace to be the first in the list
* function build on mediawiki.special form r90941

13 years agomediawiki.special as a dumb JS object
Antoine Musso [Tue, 28 Jun 2011 05:57:55 +0000 (05:57 +0000)]
mediawiki.special as a dumb JS object

It will be extended later on.

13 years agoUse content language in formatting of dates in revertpage message
Brian Wolff [Tue, 28 Jun 2011 04:47:59 +0000 (04:47 +0000)]
Use content language in formatting of dates in revertpage message
(rollback revert edit summary) and do not adjust for user timezone.

13 years ago(follow-up to some RequestContext revision) When Special:userlogin creates a new...
Brian Wolff [Tue, 28 Jun 2011 04:00:40 +0000 (04:00 +0000)]
(follow-up to some RequestContext revision) When Special:userlogin creates a new user, not only replace
$wgUser, but also do RequestContext::getMain()->setUser( $new_user );

Otherwise this causes a bug in the page immediatly after account creation where the
personal url's go to the wrong place, and the js wgUser variables are wrong.

I didn't add any release notes, since I'm tagging this for 1.18, and it was broken in 1.18,
so its not fixing anything between versions. (hopefully that's correct thing to do).

13 years agoFollow-up r85226: use getContext()->getUser() instead of $wgOut->getUser()
Aaron Schulz [Tue, 28 Jun 2011 03:51:00 +0000 (03:51 +0000)]
Follow-up r85226: use getContext()->getUser() instead of $wgOut->getUser()

13 years agoFollow-up r90819: made XOR only work on two conditions per CR. Give a warning if...
Aaron Schulz [Tue, 28 Jun 2011 02:56:45 +0000 (02:56 +0000)]
Follow-up r90819: made XOR only work on two conditions per CR. Give a warning if three or more given.

13 years agoAdd SpecialPermanentLink to Autoloader
Sam Reed [Tue, 28 Jun 2011 01:17:19 +0000 (01:17 +0000)]
Add SpecialPermanentLink to Autoloader

13 years ago* Added truncate() & truncateHTML() tests
Aaron Schulz [Tue, 28 Jun 2011 01:09:02 +0000 (01:09 +0000)]
* Added truncate() & truncateHTML() tests
* Some fixes/changes to truncateHTML() based on tests
** Something like "<span>hello</span>" ends up as "<span>...</span>" instead of just "..." for relevant cases)
** If we get something like "<span></span" in, just return it back instead of ""
* Renamed $dispLength -> $dispLen in truncateHTML()

13 years agoFollow-up r90742: the parser should call getFunctionLang()
Robin Pepermans [Mon, 27 Jun 2011 23:58:46 +0000 (23:58 +0000)]
Follow-up r90742: the parser should call getFunctionLang()

13 years agoFollowup r90923, best to actually use displayPrefix
Sam Reed [Mon, 27 Jun 2011 23:25:41 +0000 (23:25 +0000)]
Followup r90923, best to actually use displayPrefix

13 years agoDon't put a quoted/regexed prefix back out again
Sam Reed [Mon, 27 Jun 2011 23:20:31 +0000 (23:20 +0000)]
Don't put a quoted/regexed prefix back out again

13 years agoFix casing of langcode
Sam Reed [Mon, 27 Jun 2011 23:16:19 +0000 (23:16 +0000)]
Fix casing of langcode

13 years agoadding standard location of exiv2 under Ubuntu Linux as default. This is used by...
Neil Kandalgaonkar [Mon, 27 Jun 2011 23:01:17 +0000 (23:01 +0000)]
adding standard location of exiv2 under Ubuntu Linux as default. This is used by tests/phpunit/includes/api/RandomImageGenerator.php and the same binary is also used in the PagedTiffHandler extension

13 years agoAdded formatTimePeriod() tests for r90385 and made some fixes
Aaron Schulz [Mon, 27 Jun 2011 22:32:58 +0000 (22:32 +0000)]
Added formatTimePeriod() tests for r90385 and made some fixes

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

13 years ago* Fixed 'Fatal error: Class 'SpecialMyuploads' not found in C:\wamp\www\MW_trunk...
Aaron Schulz [Mon, 27 Jun 2011 20:36:59 +0000 (20:36 +0000)]
* Fixed 'Fatal error: Class 'SpecialMyuploads' not found in C:\wamp\www\MW_trunk\includes\SpecialPageFactory.php on line 318'
* Made use of $this->getUser() with special pages rather than wgUser
* Broke long lines

13 years agoFollow-up r89408, r86872: restore IContextSource and ContextSource, to be more carefu...
Happy-melon [Mon, 27 Jun 2011 19:38:30 +0000 (19:38 +0000)]
Follow-up r89408, r86872: restore IContextSource and ContextSource, to be more carefully reimplemented.

13 years agoRevert r85288 (magic accessors for RequestContext); much more trouble than they're...
Happy-melon [Mon, 27 Jun 2011 19:23:54 +0000 (19:23 +0000)]
Revert r85288 (magic accessors for RequestContext); much more trouble than they're worth.

13 years ago(bug 29511) block dropdown reasons should be in wiki content language.
Happy-melon [Mon, 27 Jun 2011 18:05:09 +0000 (18:05 +0000)]
(bug 29511) block dropdown reasons should be in wiki content language.

13 years agoFollow-up r90877: spot the copy-and-pasted code... :D
Happy-melon [Mon, 27 Jun 2011 16:22:01 +0000 (16:22 +0000)]
Follow-up r90877: spot the copy-and-pasted code... :D

13 years agoFollow-up r85322: brion's right that some styling is desirable; so make it centered...
Happy-melon [Mon, 27 Jun 2011 16:13:10 +0000 (16:13 +0000)]
Follow-up r85322: brion's right that some styling is desirable; so make it centered more like the diff layout.

13 years agoFollow-up r86044 CR (correct subtitle message for action=credits), and some documenta...
Happy-melon [Mon, 27 Jun 2011 14:05:23 +0000 (14:05 +0000)]
Follow-up r86044 CR (correct subtitle message for action=credits), and some documentation.

13 years agoFollow-up r88738: this check is no longer needed since r88750.
Happy-melon [Mon, 27 Jun 2011 13:48:01 +0000 (13:48 +0000)]
Follow-up r88738: this check is no longer needed since r88750.

13 years agoTweaked r90766 messages. Still awkward. Also, this still needs JS to disable the...
Aaron Schulz [Sun, 26 Jun 2011 23:50:15 +0000 (23:50 +0000)]
Tweaked r90766 messages. Still awkward. Also, this still needs JS to disable the check if "all" is selected, to be less confusing.

13 years agoFollow-up r86234, and more parameter documentation.
Happy-melon [Sun, 26 Jun 2011 23:40:43 +0000 (23:40 +0000)]
Follow-up r86234, and more parameter documentation.

13 years agoRestore new_name_timestamp index usage in UNION. Since r51907, there was no reason...
Aaron Schulz [Sun, 26 Jun 2011 23:32:46 +0000 (23:32 +0000)]
Restore new_name_timestamp index usage in UNION. Since r51907, there was no reason for doing the UNION. Fixed "is_null( $namespace )" checks, broken probably since FormOptions was used here (NULL value not saved for 'namespace', left to default, which is ''). Added check for 'associated namespaces' option.

13 years agoComment shuffling, also fixing r86347 CR.
Happy-melon [Sun, 26 Jun 2011 23:25:50 +0000 (23:25 +0000)]
Comment shuffling, also fixing r86347 CR.

13 years agoFollow-up r84588 CR
Happy-melon [Sun, 26 Jun 2011 23:10:57 +0000 (23:10 +0000)]
Follow-up r84588 CR

13 years agoFollow-up r84475 CR; and also documentation fixes; PhpStorm 2.1 is *even more* fussy...
Happy-melon [Sun, 26 Jun 2011 23:01:29 +0000 (23:01 +0000)]
Follow-up r84475 CR; and also documentation fixes; PhpStorm 2.1 is *even more* fussy about documentation format... :D

13 years agoMake parser->getFunctionLang be dependent on title->getPageLanguage() instead of...
Robin Pepermans [Sun, 26 Jun 2011 22:58:27 +0000 (22:58 +0000)]
Make parser->getFunctionLang be dependent on title->getPageLanguage() instead of $wgContLang, i.e. the page content language instead of the wiki content language. This sets the right language on page view + edit for all pages, instead of only edit preview on MediaWiki namespace pages (as in EditPage.php).

13 years agoRemove disableaccount stuff from r77558. Left out from r86146 reverts.
Aaron Schulz [Sun, 26 Jun 2011 21:50:24 +0000 (21:50 +0000)]
Remove disableaccount stuff from r77558. Left out from r86146 reverts.

13 years agoFollow-up r90749: use a new 'autopromote' action for the autopromote rights log entri...
Aaron Schulz [Sun, 26 Jun 2011 21:44:55 +0000 (21:44 +0000)]
Follow-up r90749: use a new 'autopromote' action for the autopromote rights log entries. Removed the 'rightsautocomment' msg.

13 years agorandom eol w/s annoys me.
Mark A. Hershberger [Sun, 26 Jun 2011 20:04:38 +0000 (20:04 +0000)]
random eol w/s annoys me.

13 years agoLocalisation updates for ToolserverI18N messages from translatewiki.net (2011-06...
Raimond Spekking [Sun, 26 Jun 2011 20:00:58 +0000 (20:00 +0000)]
Localisation updates for ToolserverI18N messages from translatewiki.net (2011-06-26 19:34:00)

13 years agoFollowup r90239: Move return till after the toggle is executed.
Mark A. Hershberger [Sun, 26 Jun 2011 20:00:20 +0000 (20:00 +0000)]
Followup r90239: Move return till after the toggle is executed.

13 years agoApply rgcjones' patch for Bug#29533:
Mark A. Hershberger [Sun, 26 Jun 2011 19:52:11 +0000 (19:52 +0000)]
Apply rgcjones' patch for Bug#29533:

    Whe placing an external link in the sidebar, $wgExternalLinkTarget is ignored.
    Also enables applying of $wgNoFollowLinks in the sidebar.

13 years agoFollowup r89566, r89568, make links point to the user whom the contributions are...
Sam Reed [Sun, 26 Jun 2011 19:33:05 +0000 (19:33 +0000)]
Followup r89566, r89568, make links point to the user whom the contributions are for (not $wgUser)

Add a comment to go with r90775

13 years agoFollowup r90839, de-capitali[sz]e api parameter
Sam Reed [Sun, 26 Jun 2011 19:20:14 +0000 (19:20 +0000)]
Followup r90839, de-capitali[sz]e api parameter

13 years agoUpdate calls to deprecated User::isValidEmailAddr
Sam Reed [Sun, 26 Jun 2011 19:16:04 +0000 (19:16 +0000)]
Update calls to deprecated User::isValidEmailAddr

Fix trailing whitespace

Some minor documentation fixes

13 years agoFollowup r90775: Fix PHP Notice: Undefined index: deletedonly in /www/w/includes...
Raimond Spekking [Sun, 26 Jun 2011 17:36:39 +0000 (17:36 +0000)]
Followup r90775: Fix  PHP Notice: Undefined index: deletedonly in /www/w/includes/specials/SpecialContributions.php on line 131

13 years agoUnbreak multiple maintenance scripts
Niklas Laxström [Sun, 26 Jun 2011 15:40:14 +0000 (15:40 +0000)]
Unbreak multiple maintenance scripts

13 years agoPer http://translatewiki.net/wiki/Thread:Support/Unprotect get rid of term unprotect...
Niklas Laxström [Sun, 26 Jun 2011 15:14:32 +0000 (15:14 +0000)]
Per translatewiki.net/wiki/Thread:Support/Unprotect get rid of term unprotect (hard to translate, not necessarily used to remove protection)

13 years agoFix comment in BacklinkCache::partition()
Antoine Musso [Sun, 26 Jun 2011 11:48:55 +0000 (11:48 +0000)]
Fix comment in BacklinkCache::partition()
+ a typo

Per cr on r84254

13 years agoMade '^' (XOR) in recCheckCondition() act as a one-hot detector. Before r28805, XOR...
Aaron Schulz [Sun, 26 Jun 2011 04:50:24 +0000 (04:50 +0000)]
Made '^' (XOR) in recCheckCondition() act as a one-hot detector. Before r28805, XOR silently ignored subconds beyond the first two. After r28805, XOR passed iff an odd number of subconds passed. It now passes iff exactly one subcond passes. This should be more intuitive, as I highly doubt anyone using 3+ subconds was doing it correctly before.

13 years agoReview and clean up of jquery.tablesorter.js + applying code conventions
Krinkle [Sun, 26 Jun 2011 04:36:02 +0000 (04:36 +0000)]
Review and clean up of jquery.tablesorter.js + applying code conventions

* Dropping redundant "new function(){}" construction, instead using the closure we already have for the local scope.
* Adding more function documentation
* Whitespace contentions
* Passing jQuery object to the $.tablesorter.construct and creating jQuery plugin function in $.fn.tablesorter (per jQuery convention, this allows $.tablesorter.construct to be used directly without having to use .apply() to get the this-context right).
* Making use of the arguments that jQuery.fn.each passes by default in $.tablesorter.construct (this/that => table)
* Renaming a few single-letter variables to something more descriptive (c => $row, r => regex etc.)
* Changed order of local functions in order of calling and dependancy (fixed JSHint potential implied globals). Also makes reading/understanding them easier.
* Removed commented out code
* Added more line breaks to separate blocks
* Merge var-statements together
* Declare 'ts' shortcut on top of the local scope, define 'ts' shortcut directly after definition of $.tablesorter
* Adding public member placeholders, populated by private functions, to the initial object instead of inside the functions. This way the members can be seen centrally (dateRegex, monthNames)

* Syntax/JSHint fixes (Passes 100% now; Globals: mw, jQuery)
- 'list' used out of scope. In function buildParserCache: "var list" was defined under an if-condition, but returned outside of it, this fails in the 'else' case. Moved var list outside the if-condition
- Strict === comparison to 0, null, undefined, false, true, '' etc.
- Require curly braces around all blocks

* Performance improvements (see also http://www.mediawiki.org/wiki/JSPERF)
- Using dot notation (obj.member = {}), instead of $.extend(obj, { member: .. }) for single additions. No need for $.extend
- Object literal {foo}, instead of new function(){ this.foo }
- Strict/fast comparison to undefined, without typeof and/or string evaluation
- cacheRegexs() is uselses if if re-creates the cache every time. Using static cache instead (which was likely the intention)

13 years ago* Core:
Aaron Schulz [Sun, 26 Jun 2011 04:12:05 +0000 (04:12 +0000)]
* Core:
** Made addAutopromoteOnceGroups() put in a user rights log entry
** Added APCOND_ISBOT cond to autopromote and updated some docs
* FlaggedRevs:
** (bug 24948) Made $wgFlaggedRevsAutopromote a wrapper around $wgAutopromoteOnce and removed maybeMakeEditor()/recordDemote() (uses r90749)
** Split off new efSetFlaggedRevsOldAutopromoteConfig function
** Removed calls to FlaggedRevs class in setup function to avoid overhead
** Made cache keys in checkAutoPromoteCond() properly unique
** Made wasPreviouslyBlocked() protected and tweaked editSpacingCheck() param order

13 years ago(sort of bug 29586) Make the (next 200) links on categories link directly to
Brian Wolff [Sun, 26 Jun 2011 03:00:37 +0000 (03:00 +0000)]
(sort of bug 29586) Make the (next 200) links on categories link directly to
the relevant section of the category.

The bug in question actually want to remove all the other sections of the category
when you hit (next 200), I personally think that'd be confusing, but would be good
to have other people's thoughts.

13 years ago(bug 8556) When using $wgRawHtml, don't show scary session_failure/possible attack
Brian Wolff [Sun, 26 Jun 2011 02:40:00 +0000 (02:40 +0000)]
(bug 8556) When using $wgRawHtml, don't show scary session_failure/possible attack
warning when you try to edit categories.

Categories automatically go to preview on open, but there's no edit token
on the initial open of the edit window, which causes big warning over nothing.

13 years agoRemoving console.log and other ad-hoc debugging code
Krinkle [Sun, 26 Jun 2011 02:05:34 +0000 (02:05 +0000)]
Removing console.log and other ad-hoc debugging code

13 years agoadd tooltip-invert & tooltip-namespace_association introduced by 90766
Antoine Musso [Sat, 25 Jun 2011 23:49:49 +0000 (23:49 +0000)]
add tooltip-invert & tooltip-namespace_association introduced by 90766

13 years agocoding style tweaks + removed some PHP4-isms
Jack Phoenix [Sat, 25 Jun 2011 23:27:05 +0000 (23:27 +0000)]
coding style tweaks + removed some PHP4-isms

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 25 Jun 2011 21:41:01 +0000 (21:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-25 21:20:00 UTC)

13 years agoFix comment from r79430; pointed out by Emufarmers
Alexandre Emsenhuber [Sat, 25 Jun 2011 19:13:40 +0000 (19:13 +0000)]
Fix comment from r79430; pointed out by Emufarmers

13 years ago* Follow-up r90749
Aaron Schulz [Sat, 25 Jun 2011 17:59:42 +0000 (17:59 +0000)]
* Follow-up r90749
** Tweaked addAutopromoteOnceGroups() calls for performance
** Some doc tweaks and fixes
* Added NS_SPECIAL short-circuit on $wgTitle for file cache and removed unnecessary "is null" check
* Pushed "$action != 'raw'" check into HTMLFileCache
* Removed useless return value from performRequest()
* Added type hint to performAction()

13 years agoFollowup r89566
Sam Reed [Sat, 25 Jun 2011 16:41:29 +0000 (16:41 +0000)]
Followup r89566

Per CR, add HTTP redirect from old feed listing on Special:Contributions to using the api module output

13 years agoFollowup r90722, seems the file comments were a bad merge...
Sam Reed [Sat, 25 Jun 2011 16:32:03 +0000 (16:32 +0000)]
Followup r90722, seems the file comments were a bad merge...

13 years agoHack followup to r90643
Sam Reed [Sat, 25 Jun 2011 16:30:32 +0000 (16:30 +0000)]
Hack followup to r90643

Comment out the call SHOW SLAVE STATUS for getting replag, leaving the use processlist

Not sure when Tim/someone else will look at it, so easier to just hack the bad code for the moment, so people can develop/test etc

13 years agoUncommited documentation from my working copy
Sam Reed [Sat, 25 Jun 2011 16:15:44 +0000 (16:15 +0000)]
Uncommited documentation from my working copy

13 years agoCorrect alignment for RevisionDelete button
Robin Pepermans [Sat, 25 Jun 2011 12:28:42 +0000 (12:28 +0000)]
Correct alignment for RevisionDelete button

13 years agoRename messages from r90670
Antoine Musso [Sat, 25 Jun 2011 12:18:44 +0000 (12:18 +0000)]
Rename messages from r90670
* uses hyphens instead of underscore
* follow the tooltip-<message> format
* rephrase tooltip-invert per CR

13 years agoFollow-up r90408: use $user->useRCPatrol()
Matěj Grabovský [Sat, 25 Jun 2011 10:04:14 +0000 (10:04 +0000)]
Follow-up r90408: use $user->useRCPatrol()

13 years agoFix r90743.
Robin Pepermans [Sat, 25 Jun 2011 10:03:37 +0000 (10:03 +0000)]
Fix r90743.

13 years agoLet $wgCategoryCollation take a class name as a value so that extensions
Brian Wolff [Sat, 25 Jun 2011 07:21:29 +0000 (07:21 +0000)]
Let $wgCategoryCollation take a class name as a value so that extensions
can define new Collation classes.

(I plan to commit such an extension shortly)

Wasn't sure if it would be better to make an array mapping collation names => class names
instead. However, that seemed to be unneededly complicated so I went with
letting that variable take class names.

13 years agoFollow-up r90749: pushed down accessing of $wgAutopromoteOnce to getAutopromoteOnceGr...
Aaron Schulz [Sat, 25 Jun 2011 05:21:53 +0000 (05:21 +0000)]
Follow-up r90749: pushed down accessing of $wgAutopromoteOnce to getAutopromoteOnceGroups()

13 years agoFollow-up r90749:
Aaron Schulz [Sat, 25 Jun 2011 04:58:48 +0000 (04:58 +0000)]
Follow-up r90749:
* Removed clunky autopromoteOnceHook function and added $wgAutopromoteOnce. It currently supports edit or view based triggering. This makes configuration much simpler.
* Added short-circuit to addAutopromoteOnceGroups() by checking if $criteria is empty
* Spacing tweaks and typo fixes.

13 years agoFollow-up r90749:
Aaron Schulz [Sat, 25 Jun 2011 04:11:20 +0000 (04:11 +0000)]
Follow-up r90749:
* Removed useless ufg_group index from user_former_groups
* Index name consistency

13 years agoFollowup r89576, and other related revisions
Sam Reed [Sat, 25 Jun 2011 03:50:41 +0000 (03:50 +0000)]
Followup r89576, and other related revisions

Move SHA1 has validation functions in ApiQueryBase

13 years agoFollowup r86198 per Happy-melon comment on CR, delete DeleteAction as it's unreferenc...
Sam Reed [Sat, 25 Jun 2011 02:55:14 +0000 (02:55 +0000)]
Followup r86198 per Happy-melon comment on CR, delete DeleteAction as it's unreferenced/ooold

13 years agoAdded one-time promote support via Autopromote::autopromoteOnceHook function. This...
Aaron Schulz [Sat, 25 Jun 2011 02:52:30 +0000 (02:52 +0000)]
Added one-time promote support via Autopromote::autopromoteOnceHook function. This is still a bit rough on the edges. This uses a hook since extension may want to control when it's called for performance reasons. Patch by lampak. (for bug 24948)

13 years agogetPath() does the wrong thing under SwiftMedia, but getRel() works for everything.
Russ Nelson [Sat, 25 Jun 2011 01:43:24 +0000 (01:43 +0000)]
getPath() does the wrong thing under SwiftMedia, but getRel() works for everything.

13 years agoHad trouble distinguishing between these two error messages; the name was a null...
Russ Nelson [Sat, 25 Jun 2011 01:19:07 +0000 (01:19 +0000)]
Had trouble distinguishing between these two error messages; the name was a null string hence the quotes.

13 years agoDirectionality improvements as part of bug 6100 (under $wgBetterDirectionality):
Robin Pepermans [Fri, 24 Jun 2011 23:01:49 +0000 (23:01 +0000)]
Directionality improvements as part of bug 6100 (under $wgBetterDirectionality):
* Add CSS that should fix all LTR/LTR text on both LTR/RTL wikis, for the editsection link, TOC, and lists (ul/ol).
* Add a class mw-content-ltr/rtl for that.
* Change the divs on CategoryPage so it works wit that CSS.
This is the last relatively major issue for bug 6100.

13 years agoDirectionality and language improvements as part of bug 6100 (under $wgBetterDirectio...
Robin Pepermans [Fri, 24 Jun 2011 22:10:39 +0000 (22:10 +0000)]
Directionality and language improvements as part of bug 6100 (under $wgBetterDirectionality):
* Make TOC numberings be in the page content language instead of wiki content language.
* Update getPageLanguage() and add a hook (for bug 9360/28970).
* Show redirects (when viewing a page with &redirect=no) in the user language direction (not essential but nicer imo).

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 24 Jun 2011 21:00:23 +0000 (21:00 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-24 20:31:00 UTC)

13 years ago(bug 28030) LTR usernames are aligned incorrectly in RTL wikis when the date preferen...
Robin Pepermans [Fri, 24 Jun 2011 20:59:26 +0000 (20:59 +0000)]
(bug 28030) LTR usernames are aligned incorrectly in RTL wikis when the date preference is yyyy-mm-ddThh:mm:ss -> add a direction mark

13 years ago(bug 12406) Pages with names in RTL scripts are not listed correctly in Special:Whatl...
Robin Pepermans [Fri, 24 Jun 2011 20:25:55 +0000 (20:25 +0000)]
(bug 12406) Pages with names in RTL scripts are not listed correctly in Special:Whatlinkshere -> add a direction mark

The direction mark is no longer needed when bug 6100 is fixed, but this fixes it for the meantime.

13 years ago* Removed break in first loop of generateTableHTML(), which caused:
Aaron Schulz [Fri, 24 Jun 2011 20:25:16 +0000 (20:25 +0000)]
* Removed break in first loop of generateTableHTML(), which caused:
'<b>Notice</b>: Undefined index: type in <b>C:\wamp\www\MW_trunk\includes\parser\Parser.php</b>
* Made some code simplifications

13 years agoRelease-notes for r90729 (why doesn't this happen automatically ?)
Krinkle [Fri, 24 Jun 2011 19:54:25 +0000 (19:54 +0000)]
Release-notes for r90729 (why doesn't this happen automatically ?)

13 years ago(bug 29567) mw.util.addPortletLink should only wrap link in <span> for "vectorTabs...
Krinkle [Fri, 24 Jun 2011 19:52:35 +0000 (19:52 +0000)]
(bug 29567) mw.util.addPortletLink should only wrap link in <span> for "vectorTabs" portlets
* Patch by Erwin Dokter
* This unbreaks test introduced in r90728

13 years agoAdding unit test for span presence in mw.util.addPortletLink
Krinkle [Fri, 24 Jun 2011 19:50:53 +0000 (19:50 +0000)]
Adding unit test for span presence in mw.util.addPortletLink
* This is for bug 29567
* Also caching jQuery object while at it and renaming variables to be more descriptive here

Test currently fails (as is supposed to)

13 years agoRemoving fake html structure from qunit/index.html, instead putting needed nodes...
Krinkle [Fri, 24 Jun 2011 19:35:21 +0000 (19:35 +0000)]
Removing fake html structure from qunit/index.html, instead putting needed nodes in the test suite. Leaving #content due to onload dependancies.

This will all be redundant as soon as phase 2 for JS Unit testing is complete (at which point it will be on an actual wiki page)

13 years ago* More cleanups for r88084 (and fixed r90692).
Aaron Schulz [Fri, 24 Jun 2011 19:22:50 +0000 (19:22 +0000)]
* More cleanups for r88084 (and fixed r90692).
* Fixed older problem with PrefixIndex not listing anything if all you give is namespace=NS_MAIN whereas any other NS worked fine.

13 years agoRelease-note fixes
Krinkle [Fri, 24 Jun 2011 17:32:34 +0000 (17:32 +0000)]
Release-note fixes

Summaries in release notes must describe either what has been done or what should be done, not (just) what "happens" or "happened". ie. "Setting $foo to true triggers Bar" is not very useful. "Do Lorem if $foo is true" or "Lorem is now done when $foo is true" is more useful.

(Also follows up on r88356 CR)

13 years agoSimplify a bit by using getRawText() instead of creating a Revision object
Alexandre Emsenhuber [Fri, 24 Jun 2011 17:15:27 +0000 (17:15 +0000)]
Simplify a bit by using getRawText() instead of creating a Revision object

13 years agoReduce calls to wfTimestampNow() by using temporary variable. Inspired by CR on r88278.
Siebrand Mazeland [Fri, 24 Jun 2011 10:00:35 +0000 (10:00 +0000)]
Reduce calls to wfTimestampNow() by using temporary variable. Inspired by CR on r88278.

13 years agoFollow-up r88278. Do not call $wfTimestampNow() twice, but use a temporary variable.
Siebrand Mazeland [Fri, 24 Jun 2011 09:48:38 +0000 (09:48 +0000)]
Follow-up r88278. Do not call $wfTimestampNow() twice, but use a temporary variable.

13 years agoMore RELEASE-NOTES-1.19 tweaks
Aaron Schulz [Fri, 24 Jun 2011 08:29:39 +0000 (08:29 +0000)]
More RELEASE-NOTES-1.19 tweaks

13 years agoClarify some bug fix notes
Aaron Schulz [Fri, 24 Jun 2011 08:21:59 +0000 (08:21 +0000)]
Clarify some bug fix notes