lhc/web/wiklou.git
12 years agoI hate eol w/s
Mark A. Hershberger [Thu, 22 Dec 2011 18:12:36 +0000 (18:12 +0000)]
I hate eol w/s

12 years ago(bug 12262) Follow-up r102026: update ul margin in shared.css
Robin Pepermans [Thu, 22 Dec 2011 15:47:44 +0000 (15:47 +0000)]
(bug 12262) Follow-up r102026: update ul margin in shared.css

12 years agoUse ⌘ in for Mac keyboard shortcuts
Antoine Musso [Thu, 22 Dec 2011 13:42:14 +0000 (13:42 +0000)]
Use ⌘ in for Mac keyboard shortcuts

Looks better to the eye when playing with your User:foo/style.css

http://en.wikipedia.org/wiki/Command_key

12 years agoapply CSS::Janus when user preview its CSS style
Antoine Musso [Thu, 22 Dec 2011 13:35:37 +0000 (13:35 +0000)]
apply CSS::Janus when user preview its CSS style

follow up r94421

12 years ago- add comment to document us_chunk_inx in sql file
Jan Gerber [Thu, 22 Dec 2011 13:18:49 +0000 (13:18 +0000)]
- add comment to document us_chunk_inx in sql file
- fix chunk upload to work with recent filerepo changes
Follow up r104687

12 years agoFixed a typo in r107054
Max Semenik [Thu, 22 Dec 2011 11:11:59 +0000 (11:11 +0000)]
Fixed a typo in r107054

12 years agodo not evaluate '<?php' line
Antoine Musso [Thu, 22 Dec 2011 11:06:23 +0000 (11:06 +0000)]
do not evaluate '<?php' line

This happen when you are sending to eval.php a php file. The first line
is the string '<?php' which is passed to eval(). Boom!
This patch skip that string.

Example usage:
 $ cat somefile.php
 <?php
 echo "Working!\n";
 $

 $ cat somefile.php | php maintenance/eval.php
 Working!
 $

12 years agoremove bug 31921 from 1.19 RN
Antoine Musso [Thu, 22 Dec 2011 09:25:47 +0000 (09:25 +0000)]
remove bug 31921 from 1.19 RN

Fix was merged in REL1_18 by r107046

12 years agoMoved SQLite test .sql files to the common test data directory
Max Semenik [Thu, 22 Dec 2011 09:18:39 +0000 (09:18 +0000)]
Moved SQLite test .sql files to the common test data directory

12 years agoMake apibase of $wgForeignFileRepos (InstantCommons) protocol relative too
Raimond Spekking [Thu, 22 Dec 2011 08:33:37 +0000 (08:33 +0000)]
Make apibase of $wgForeignFileRepos (InstantCommons) protocol relative too

12 years agoAdd some letters per https://incubator.wikimedia.org/w/index.php?diff=666382&oldid...
Robin Pepermans [Thu, 22 Dec 2011 01:27:59 +0000 (01:27 +0000)]
Add some letters per https://incubator.wikimedia.org/w/index.php?diff=666382&oldid=664736

12 years ago* FU r106752: de-uglified Setup.php by moving most of the b/c code into FileBackendGr...
Aaron Schulz [Thu, 22 Dec 2011 01:06:19 +0000 (01:06 +0000)]
* FU r106752: de-uglified Setup.php by moving most of the b/c code into FileBackendGroup. Deferred registration of file backends and lock managers to the respective singleton() functions for the group objects.
* Refactored FileRepo::initZones() to require the specific zones; nothing was using it differently.
* Removed deleted zone check in deleteBatch(), a similar error will instead trigger with the initZones() call as needed.
* Added $wgLocalFileRepo comment.
* Updated tests.

12 years agoUpdate documentation on params method of Message class to indicate it can either...
Brian Wolff [Thu, 22 Dec 2011 00:51:43 +0000 (00:51 +0000)]
Update documentation on params method of Message class to indicate it can either be varags, or it can also
take an array of all the parameters as the first argument.

12 years agoFU r105512: urldecode() the file and thumb name in wfExtractThumbParams() for 404...
Aaron Schulz [Thu, 22 Dec 2011 00:43:11 +0000 (00:43 +0000)]
FU r105512: urldecode() the file and thumb name in wfExtractThumbParams() for 404 handling as needed.

12 years agoadded missing UploadStash exceptions to AutoLoader
Ian Baker [Thu, 22 Dec 2011 00:11:38 +0000 (00:11 +0000)]
added missing UploadStash exceptions to AutoLoader

12 years ago[mediawiki.api] bug fixes
Krinkle [Wed, 21 Dec 2011 23:56:02 +0000 (23:56 +0000)]
[mediawiki.api] bug fixes

* error callback of some convenience functions was broken. Second argument to get() is ajaxOptions, there is no third argument.

12 years ago[mediawiki.api] clean up
Krinkle [Wed, 21 Dec 2011 23:52:37 +0000 (23:52 +0000)]
[mediawiki.api] clean up

* Adding return values to most of the ajax functions so that the jqXHR object (originally returned by jQuery.ajax) is available. Some functions documented they already did this, some don't. Now they all do and are also documented as such.

* Renaming a few 'callback' arguments to 'success' to avoid confusion with 'error'.

* Removed unused variables
** mw.Api's instance this.url was unused
** var cachedToken was unused in mediawiki.api.titleblacklist.js

* Making closure argument order the same and referencing mediaWiki as a global (mw is something thought not to be a global but mediaWiki certainly is, no need to access window from the global scope and then the mediaWiki property of it). Also renamed any used of $j to $. Adding 'undefined' to the closure arguments where missing.

* Re-written the mw.Api constructor's logic for options. Now keeping a defaultOptions privately "statically" cached outside the constructor and using that to build the options object.

* Made all non-block comments the same comment style (some were /* */ or /* \n */)

* Completed parameter documentation and wrote TODO as @todo and added an example use for mw.Api in the documentation.

* Some other random whitespacing, line breaking, merged var statement, and moved them out of blocks (since JS doesn't have block scope) into the main function body for clarity. And some other random JS Lint/JS Hint stuff.

* Added comment to api.titleblacklist module about the module not being in core but in the TitleBlacklist extension.

12 years ago* (bug 23427) Introduced {{PAGEID}} variable to expose page.page_id [patch by Waldir]
Danny B [Wed, 21 Dec 2011 23:19:24 +0000 (23:19 +0000)]
* (bug 23427) Introduced {{PAGEID}} variable to expose page.page_id [patch by Waldir]

12 years agofollow-up to r106912, making change to correct branch this time
Ryan Kaldari [Wed, 21 Dec 2011 22:54:22 +0000 (22:54 +0000)]
follow-up to r106912, making change to correct branch this time

12 years agoThis isn't a doc comment, so shouldn't start with /** (and it messes up my syntax...
Ian Baker [Wed, 21 Dec 2011 22:48:00 +0000 (22:48 +0000)]
This isn't a doc comment, so shouldn't start with /** (and it messes up my syntax highlighting)

12 years agochanged instances of sample.com to example.com per RFC 2606
Ian Baker [Wed, 21 Dec 2011 22:22:01 +0000 (22:22 +0000)]
changed instances of sample.com to example.com per RFC 2606

12 years ago[Core JS] mw.util.addCSS: Insert style tag into dom before setting cssText
Krinkle [Wed, 21 Dec 2011 22:08:52 +0000 (22:08 +0000)]
[Core JS] mw.util.addCSS: Insert style tag into dom before setting cssText
* Fixes bug 33305

12 years ago[Core JS] Applying conventions to mw.util
Krinkle [Wed, 21 Dec 2011 22:06:02 +0000 (22:06 +0000)]
[Core JS] Applying conventions to mw.util
- new recommended closure format
- fixing repeated var statements, or var statement inside blocks (there is no block scope in JavaScript) and moving them to the top of the function
- line breaking, indention, white space
- and more.. see also https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript

12 years ago* FU r106752: unbreak urls to ForeignAPIRepo file thumbnails. FileRepo no longer...
Aaron Schulz [Wed, 21 Dec 2011 21:29:16 +0000 (21:29 +0000)]
* FU r106752: unbreak urls to ForeignAPIRepo file thumbnails. FileRepo no longer uses bogus <public root URL>/thumb default for the thumnail URL when the public root URL wasn't even set. This was making ForeignAPIRepo not set it since it saw that it was already set.
* Cleaned up and added some missing sanity checks for scriptDirUrl member in FileRepo. Made some related documentation tweaks.
* Removed pointless getRepo() call in File.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 21 Dec 2011 20:44:11 +0000 (20:44 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* Added FileRepo::SKIP_LOCKING constant and made storeBatch() check it.
Aaron Schulz [Wed, 21 Dec 2011 20:39:50 +0000 (20:39 +0000)]
* Added FileRepo::SKIP_LOCKING constant and made storeBatch() check it.
* Made File::maybeDoTransform() use the FileRepo::store() and a new File::getThumbRel() function. Looks cleaner and loosens FileBackend coupling.
* Also made storeTemp() use FileRepo::SKIP_LOCKING for performance.
* Killed some useless initZones() calls in FileRepo. Extensions may not even use these zones. Likewise, it could make tests fail even though they don't those zones. We already do the sanity with some prepare() calls in storeBatch().
* Removed FileRepo::SKIP_VALIDATION, not used by anything now.
* Moved getUrlRel() down a bit.

12 years agoCode style: move a couple htmlspecialchars() down to usage so it's clear where escapi...
Brion Vibber [Wed, 21 Dec 2011 19:17:39 +0000 (19:17 +0000)]
Code style: move a couple htmlspecialchars() down to usage so it's clear where escaping happens

12 years ago(bug 33246) News icon shown for news:// URLs but not for news: URLs. Patch by Erwin...
Roan Kattouw [Wed, 21 Dec 2011 18:58:27 +0000 (18:58 +0000)]
(bug 33246) News icon shown for news:// URLs but not for news: URLs. Patch by Erwin Dokter

12 years agoDeclare constant default values directly in the class definition and removed the...
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:53:00 +0000 (18:53 +0000)]
Declare constant default values directly in the class definition and removed the constructor since it's useless now

12 years agoUse LinkCache::singleton()->clear() instead of using a local variable so that I can...
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:46:39 +0000 (18:46 +0000)]
Use LinkCache::singleton()->clear() instead of using a local variable so that I can see what LinkCache::singleton() will be used for directly in grep

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:44:25 +0000 (18:44 +0000)]
* Use local context to get messages
* Use Language::userTimeAndDate() and related instead of Language::timeanddate() where needed
* Factorised some calls to member functions

12 years agoUse accessor instead of the member variable directly and factorise the calls to it
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:40:02 +0000 (18:40 +0000)]
Use accessor instead of the member variable directly and factorise the calls to it

12 years agotests for r94881 which interprets relative Location: headers
Antoine Musso [Wed, 21 Dec 2011 15:31:30 +0000 (15:31 +0000)]
tests for r94881 which interprets relative Location: headers

12 years agofollow up to r106883, typo fixes
Jeroen De Dauw [Wed, 21 Dec 2011 15:09:01 +0000 (15:09 +0000)]
follow up to r106883, typo fixes

12 years agoOptimized doOperations() a bit to only get SH locks for the paths that aren't already...
Aaron Schulz [Wed, 21 Dec 2011 10:06:47 +0000 (10:06 +0000)]
Optimized doOperations() a bit to only get SH locks for the paths that aren't already going to get EX locks

12 years ago* Renamed FileBackend functions internal to FileBackend/FileOp, making their usage...
Aaron Schulz [Wed, 21 Dec 2011 09:16:28 +0000 (09:16 +0000)]
* Renamed FileBackend functions internal to FileBackend/FileOp, making their usage clearer.
* Added convenience functions to FileBackendBase for basic file ops. Previously, doOperation() was the only convenience function...give it some friends :)
* More documentation comments.

12 years agoFixed typo in testGetFileList() and used the proper FileBackend function delete
Aaron Schulz [Wed, 21 Dec 2011 08:46:10 +0000 (08:46 +0000)]
Fixed typo in testGetFileList() and used the proper FileBackend function delete

12 years agoRelease notes for r105645.
Tim Starling [Wed, 21 Dec 2011 05:49:00 +0000 (05:49 +0000)]
Release notes for r105645.

12 years agoactually use the flipping cssclass arg, so its possible to set a css class without...
Jeroen De Dauw [Wed, 21 Dec 2011 01:10:51 +0000 (01:10 +0000)]
actually use the flipping cssclass arg, so its possible to set a css class without creating your own input field type class

12 years agofollow-up to r105740, adding the actual graphic to use (in the right branch this...
Ryan Kaldari [Wed, 21 Dec 2011 00:28:57 +0000 (00:28 +0000)]
follow-up to r105740, adding the actual graphic to use (in the right branch this time)

12 years agofollow-up to r106754 - using strict comparison, adding logic for editing existing...
Ryan Kaldari [Tue, 20 Dec 2011 23:50:15 +0000 (23:50 +0000)]
follow-up to r106754 - using strict comparison, adding logic for editing existing pages, changing parameter name in WikiPage::replaceSection from $summary to $sectionTitle as it only used for section titling

12 years agoFU r106752: use "media-" instead of "images-" in container names. Long live books...
Aaron Schulz [Tue, 20 Dec 2011 23:47:53 +0000 (23:47 +0000)]
FU r106752: use "media-" instead of "images-" in container names. Long live books, video, 3D meshes, and animated holograms from the future!

12 years agofix race condition in UploadFromChunks, followup to r104687
Neil Kandalgaonkar [Tue, 20 Dec 2011 23:02:42 +0000 (23:02 +0000)]
fix race condition in UploadFromChunks, followup to r104687

12 years agoFollowup r105280
Brandon Harris [Tue, 20 Dec 2011 22:53:07 +0000 (22:53 +0000)]
Followup r105280
For bug 33139 "Swapping colors in new diff color scheme"

* Modified diff colorscheme to yellow[orange]/blue[blue]
  - These colors attempt to address the following issues with diffs:
    - Colorblindness (Protanopia/Deuteranopia)
    - Cultural meaning of color (e.g., "green is good, therefore this diff is better")
* Bumped font size up overall (actually, just removed the smaller)
* Removed dotted line around difftext

12 years agopartial revert of r106872 after discussion with Brion on #mediawiki irc
Jeroen De Dauw [Tue, 20 Dec 2011 22:45:14 +0000 (22:45 +0000)]
partial revert of r106872 after discussion with Brion on #mediawiki irc

12 years agoRevert r106439, r106441 - bad formatting mushing separate lines together
Brion Vibber [Tue, 20 Dec 2011 22:11:29 +0000 (22:11 +0000)]
Revert r106439, r106441 - bad formatting mushing separate lines together

12 years agoRevert r106870: doesn't seem like it would format things consistently as expected.
Brion Vibber [Tue, 20 Dec 2011 22:05:40 +0000 (22:05 +0000)]
Revert r106870: doesn't seem like it would format things consistently as expected.

12 years agoFU r106514: Sanity check for empty sha1 values in the DB
Aaron Schulz [Tue, 20 Dec 2011 21:58:29 +0000 (21:58 +0000)]
FU r106514: Sanity check for empty sha1 values in the DB

12 years agoRevert r106094 (broken unnecessary cleanup), r106454 (ugly unneceessary cleanup)
Brion Vibber [Tue, 20 Dec 2011 21:57:17 +0000 (21:57 +0000)]
Revert r106094 (broken unnecessary cleanup), r106454 (ugly unneceessary cleanup)

The ugliness of this sort of code is probably part of why there's still a Linker::tooltip() function.
Please don't just replace it with worse code; if truly cleaning it up this should be done by giving a saner interface to the nav generation code

12 years agoRevert r106456, r106485: system-wide setting seems to be intended to apply only to...
Brion Vibber [Tue, 20 Dec 2011 21:52:18 +0000 (21:52 +0000)]
Revert r106456, r106485: system-wide setting seems to be intended to apply only to specific extensions' code but wouldn't? Also weird config parameter combining two unrelated things into one.

12 years agoFor r106521/r106865, wrap long example description strings
Sam Reed [Tue, 20 Dec 2011 21:37:51 +0000 (21:37 +0000)]
For r106521/r106865, wrap long example description strings

Follows up r106439

12 years agoProvisional revert of r105831: as noted it's not safe; alternative fix was a weird...
Brion Vibber [Tue, 20 Dec 2011 21:37:04 +0000 (21:37 +0000)]
Provisional revert of r105831: as noted it's not safe; alternative fix was a weird abstraction violation that would leave you not knowing whether the data would be present or not.

12 years agogrammar :) followup r106514
Brion Vibber [Tue, 20 Dec 2011 21:29:24 +0000 (21:29 +0000)]
grammar :) followup r106514

12 years agoRevert r106521: creates lots of long, unwrappable lines in help output
Brion Vibber [Tue, 20 Dec 2011 21:26:57 +0000 (21:26 +0000)]
Revert r106521: creates lots of long, unwrappable lines in help output

12 years agoProvisional revert r106573, r106559: may be the wrong thing to do, and should probabl...
Brion Vibber [Tue, 20 Dec 2011 21:24:06 +0000 (21:24 +0000)]
Provisional revert r106573, r106559: may be the wrong thing to do, and should probably come with regression tests if added.

12 years agoRevert r106523: abstraction violation, looks very wrong, unclear benefits
Brion Vibber [Tue, 20 Dec 2011 21:20:50 +0000 (21:20 +0000)]
Revert r106523: abstraction violation, looks very wrong, unclear benefits

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 20 Dec 2011 20:47:29 +0000 (20:47 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agor106752: Add two more new message keys to maintenance file
Raimond Spekking [Tue, 20 Dec 2011 20:41:01 +0000 (20:41 +0000)]
r106752: Add two more new message keys to maintenance file

12 years agoSimplify $assoc check
Chad Horohoe [Tue, 20 Dec 2011 20:15:42 +0000 (20:15 +0000)]
Simplify $assoc check

12 years agoFU r106770: fixed the other getTransform() call
Aaron Schulz [Tue, 20 Dec 2011 20:15:05 +0000 (20:15 +0000)]
FU r106770: fixed the other getTransform() call

12 years agoCleaned up some references to FSRepo in code and comments. This should have no notice...
Aaron Schulz [Tue, 20 Dec 2011 19:25:23 +0000 (19:25 +0000)]
Cleaned up some references to FSRepo in code and comments. This should have no noticeable functional changes.

12 years agoFU r106752: added b/c code to FSRepo to make things easy for extensions (like Confirm...
Aaron Schulz [Tue, 20 Dec 2011 18:55:50 +0000 (18:55 +0000)]
FU r106752: added b/c code to FSRepo to make things easy for extensions (like ConfirmAccount)

12 years agoFix casing of Language::timeanddate calls
Alexandre Emsenhuber [Tue, 20 Dec 2011 18:09:21 +0000 (18:09 +0000)]
Fix casing of Language::timeanddate calls

12 years agoUse local context to get messages
Alexandre Emsenhuber [Tue, 20 Dec 2011 18:07:19 +0000 (18:07 +0000)]
Use local context to get messages

12 years agoUpdate punctuation for recently added messages.
Siebrand Mazeland [Tue, 20 Dec 2011 17:26:57 +0000 (17:26 +0000)]
Update punctuation for recently added messages.

12 years ago* removed manual cascading of recentchanges on page delete
Jure Kajzer [Tue, 20 Dec 2011 16:11:45 +0000 (16:11 +0000)]
* removed manual cascading of recentchanges on page delete
* fixed purgeCache bug in updater
* TESTED install/update from 1.18/phpunit

12 years agoFix AutoLoader fail from r106800
Sam Reed [Tue, 20 Dec 2011 15:02:39 +0000 (15:02 +0000)]
Fix AutoLoader fail from r106800

12 years agoFix typo spotted by Roan. Originated in r106752, cp error in r106796.
Raimond Spekking [Tue, 20 Dec 2011 14:23:20 +0000 (14:23 +0000)]
Fix typo spotted by Roan. Originated in r106752, cp error in r106796.

12 years agoMove registration form template to its own file
Sam Reed [Tue, 20 Dec 2011 14:01:09 +0000 (14:01 +0000)]
Move registration form template to its own file

12 years agor106752: Add block comments
Raimond Spekking [Tue, 20 Dec 2011 13:34:36 +0000 (13:34 +0000)]
r106752: Add block comments

12 years agoFix for r104684
Sam Reed [Tue, 20 Dec 2011 12:36:34 +0000 (12:36 +0000)]
Fix for r104684

Using "$result['sectionanchor'] == ''; rather than "$result['sectionanchor'] = '';"...

12 years agoCorrect the error dialog display.
Santhosh Thottingal [Tue, 20 Dec 2011 12:07:22 +0000 (12:07 +0000)]
Correct the error dialog display.

12 years agoFix for bug 33270: default to 'default' search profile
Niklas Laxström [Tue, 20 Dec 2011 11:17:36 +0000 (11:17 +0000)]
Fix for bug 33270: default to 'default' search profile
Had this fixed in one of my wikies but not committed

12 years ago(bug 33156) Special:block didn't let you confirm blocking yourself if using non-norma...
Brian Wolff [Tue, 20 Dec 2011 10:15:18 +0000 (10:15 +0000)]
(bug 33156) Special:block didn't let you confirm blocking yourself if using non-normalized name.

Was comparing the normalized name to the non-normalized name that gets inserted into the form, since
request variables from previous request override form defaults.

12 years agoFix for r102116: link feed to Special:Recentchanges, not current page
Alexandre Emsenhuber [Tue, 20 Dec 2011 09:12:20 +0000 (09:12 +0000)]
Fix for r102116: link feed to Special:Recentchanges, not current page

12 years agoSet deleted zone container in parserTest.inc
Aaron Schulz [Tue, 20 Dec 2011 08:47:48 +0000 (08:47 +0000)]
Set deleted zone container in parserTest.inc

12 years agoFU r106752: unbreak "other sizes" links on File: pages by working around the suck...
Aaron Schulz [Tue, 20 Dec 2011 08:38:55 +0000 (08:38 +0000)]
FU r106752: unbreak "other sizes" links on File: pages by working around the suck /media system.

12 years agoRemove trailing whitespace and a few superfluous empty lines.
Siebrand Mazeland [Tue, 20 Dec 2011 08:21:54 +0000 (08:21 +0000)]
Remove trailing whitespace and a few superfluous empty lines.

12 years agoDon't re-use allinnamespace as the header for special:prefixindex. instead introduce...
Brian Wolff [Tue, 20 Dec 2011 07:55:44 +0000 (07:55 +0000)]
Don't re-use allinnamespace as the header for special:prefixindex. instead introduce new message prefixindex-namespace

Hopefully directly editing MessagesQqq.php like I did is ok... I can never remember if i'm supposed to do that, or if it will just be overridden on next translatewiki export.

12 years agoSet deleted zone container in UploadFromUrlTestSuite
Aaron Schulz [Tue, 20 Dec 2011 07:55:16 +0000 (07:55 +0000)]
Set deleted zone container in UploadFromUrlTestSuite

12 years agoFU r106752: Fixed directory b/c for ForeignAPIRepo, which was moved to Setup.php
Aaron Schulz [Tue, 20 Dec 2011 07:53:48 +0000 (07:53 +0000)]
FU r106752: Fixed directory b/c for ForeignAPIRepo, which was moved to Setup.php

12 years agoFollow-up r97303: sort module names in paraminfo's paraminfo
Max Semenik [Tue, 20 Dec 2011 07:50:45 +0000 (07:50 +0000)]
Follow-up r97303: sort module names in paraminfo's paraminfo

12 years agofollow-up r98710/r104410. I personally think that forRefresh is confusing, since...
Brian Wolff [Tue, 20 Dec 2011 06:48:05 +0000 (06:48 +0000)]
follow-up r98710/r104410. I personally think that forRefresh is confusing, since a purge is always in essence a "refresh"ing operation. change it to forThumbRefresh.

12 years agoIf you request LogEventList to display the combination of 2 log types, and one of
Brian Wolff [Tue, 20 Dec 2011 06:16:08 +0000 (06:16 +0000)]
If you request LogEventList to display the combination of 2 log types, and one of
those logs are restricted, will generate a warning, since it removes first entry of
array, but doesn't re-index the array, and subsequent code makes assumptions of the
form if ( count( $this->types ) $singleType = $this->types[0] (which doesn't work, as
first index is 1).

Thus cause array to be re-indexed if a $wgLogRestriction causes a log type to be removed.

Steps to reproduce the issue is make deletion log restricted, then view a (non-existent) user page.

Personally I think its kind of weird/wrong that if someone restricts both the move and delete log,
then viewing a non-existent will give "This page has been deleted, here's delete log:" followed by an
entry from *any* public log.

12 years ago* Fix class name
Tim Starling [Tue, 20 Dec 2011 04:39:12 +0000 (04:39 +0000)]
* Fix class name
* unset($wgMemc) doesn't actually do anything useful, it just removes the reference from the local scope. Set it to NULL instead.

12 years agoDon't suppress warnings when attempting file creation for the second time, this masks...
Tim Starling [Tue, 20 Dec 2011 04:36:27 +0000 (04:36 +0000)]
Don't suppress warnings when attempting file creation for the second time, this masks important error messages

12 years ago$reqArr is an ambiguous variable name - req can mean required or request. Changing...
Ryan Kaldari [Tue, 20 Dec 2011 04:22:06 +0000 (04:22 +0000)]
$reqArr is an ambiguous variable name - req can mean required or request. Changing to an unambiguous name

12 years agoadding sectiontitle/wgSectionTitle as a new parameter for page editing (so that it...
Ryan Kaldari [Tue, 20 Dec 2011 04:15:21 +0000 (04:15 +0000)]
adding sectiontitle/wgSectionTitle as a new parameter for page editing (so that it can be set separately from the edit summary). For right now, this is just for API use, and thus isnt used in the form. As soon as 1.19 is out the door, we should change the form to use this as well. The current implementation is designed to be completely backward-compatible and non-disruptive

12 years agoMerged FileBackend branch. Manually avoiding merging the many prop-only changes SVN...
Aaron Schulz [Tue, 20 Dec 2011 03:52:06 +0000 (03:52 +0000)]
Merged FileBackend branch. Manually avoiding merging the many prop-only changes SVN likes to sprinkle in (easy to spot from the change list). Did not add SwiftFileBackend.php as it still is in development.

12 years agoReverted r101014 per CR. Added comment. The sooner RL2 kills this the better...
Aaron Schulz [Tue, 20 Dec 2011 00:57:25 +0000 (00:57 +0000)]
Reverted r101014 per CR. Added comment. The sooner RL2 kills this the better...

12 years agoFix $imit to $limit
Sam Reed [Mon, 19 Dec 2011 23:33:37 +0000 (23:33 +0000)]
Fix $imit to $limit

Followup r106567

12 years agoExtraParserTest::testTrackingCategory and ExtraParserTest::testTrackingCategorySpecia...
Platonides [Mon, 19 Dec 2011 21:00:03 +0000 (21:00 +0000)]
ExtraParserTest::testTrackingCategory and ExtraParserTest::testTrackingCategorySpecial need a db

12 years agoUse local context to get message
Alexandre Emsenhuber [Mon, 19 Dec 2011 20:20:47 +0000 (20:20 +0000)]
Use local context to get message

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 19 Dec 2011 20:15:36 +0000 (20:15 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoadd docs for feedback messages
Neil Kandalgaonkar [Mon, 19 Dec 2011 19:46:52 +0000 (19:46 +0000)]
add docs for feedback messages

12 years agoFollowup r106619, mark said method public due to callers
Sam Reed [Mon, 19 Dec 2011 19:07:18 +0000 (19:07 +0000)]
Followup r106619, mark said method public due to callers

12 years ago* Use Language::userTimeAndDate() and related instead of Language::timeanddate()...
Alexandre Emsenhuber [Mon, 19 Dec 2011 18:19:03 +0000 (18:19 +0000)]
* Use Language::userTimeAndDate() and related instead of Language::timeanddate() when using user preferences to display dates
* Use local variables instead of calling some methods three times
* Fixed casing of remaining Language::timeanddate() call

12 years agoPass the User object to Title::userCan()
Alexandre Emsenhuber [Mon, 19 Dec 2011 16:10:06 +0000 (16:10 +0000)]
Pass the User object to Title::userCan()

12 years ago* Inlinise the only usage of $user in MediaWiki::main()
Alexandre Emsenhuber [Mon, 19 Dec 2011 16:05:47 +0000 (16:05 +0000)]
* Inlinise the only usage of $user in MediaWiki::main()
* Change the name of the variable containing the WikiPage object for more consistency

12 years ago@private is a lie, based on usage, it'd need to be at least protected
Sam Reed [Mon, 19 Dec 2011 01:07:30 +0000 (01:07 +0000)]
@private is a lie, based on usage, it'd need to be at least protected

Removing useless documentation replacing with param/return doc