Raimond Spekking [Tue, 20 Dec 2011 13:34:36 +0000 (13:34 +0000)]
r106752: Add block comments
Sam Reed [Tue, 20 Dec 2011 12:36:34 +0000 (12:36 +0000)]
Fix for r104684
Using "$result['sectionanchor'] == ''; rather than "$result['sectionanchor'] = '';"...
Santhosh Thottingal [Tue, 20 Dec 2011 12:07:22 +0000 (12:07 +0000)]
Correct the error dialog display.
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
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.
Alexandre Emsenhuber [Tue, 20 Dec 2011 09:12:20 +0000 (09:12 +0000)]
Fix for r102116: link feed to Special:Recentchanges, not current page
Aaron Schulz [Tue, 20 Dec 2011 08:47:48 +0000 (08:47 +0000)]
Set deleted zone container in parserTest.inc
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.
Siebrand Mazeland [Tue, 20 Dec 2011 08:21:54 +0000 (08:21 +0000)]
Remove trailing whitespace and a few superfluous empty lines.
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.
Aaron Schulz [Tue, 20 Dec 2011 07:55:16 +0000 (07:55 +0000)]
Set deleted zone container in UploadFromUrlTestSuite
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
Max Semenik [Tue, 20 Dec 2011 07:50:45 +0000 (07:50 +0000)]
Follow-up r97303: sort module names in paraminfo's paraminfo
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.
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.
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.
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
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
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
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.
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...
Sam Reed [Mon, 19 Dec 2011 23:33:37 +0000 (23:33 +0000)]
Fix $imit to $limit
Followup r106567
Platonides [Mon, 19 Dec 2011 21:00:03 +0000 (21:00 +0000)]
ExtraParserTest::testTrackingCategory and ExtraParserTest::testTrackingCategorySpecial need a db
Alexandre Emsenhuber [Mon, 19 Dec 2011 20:20:47 +0000 (20:20 +0000)]
Use local context to get message
Raimond Spekking [Mon, 19 Dec 2011 20:15:36 +0000 (20:15 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Neil Kandalgaonkar [Mon, 19 Dec 2011 19:46:52 +0000 (19:46 +0000)]
add docs for feedback messages
Sam Reed [Mon, 19 Dec 2011 19:07:18 +0000 (19:07 +0000)]
Followup r106619, mark said method public due to callers
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
Alexandre Emsenhuber [Mon, 19 Dec 2011 16:10:06 +0000 (16:10 +0000)]
Pass the User object to Title::userCan()
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
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
Jeroen De Dauw [Sun, 18 Dec 2011 21:29:41 +0000 (21:29 +0000)]
doc++
Raimond Spekking [Sun, 18 Dec 2011 20:47:06 +0000 (20:47 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Robin Pepermans [Sun, 18 Dec 2011 19:20:41 +0000 (19:20 +0000)]
Follow-up r103640
Alexandre Emsenhuber [Sun, 18 Dec 2011 19:04:25 +0000 (19:04 +0000)]
* Use local context to get messages
* Use Language::userTimeAndDate(), Language::userTime() and Language::userDate() instead of Language::timeAndDate(), Language::time(), Language::date() to not depend on $wgUser
* Replaced empty() check by check against explicit values
Robin Pepermans [Sun, 18 Dec 2011 17:58:47 +0000 (17:58 +0000)]
Follow-up r106559: it's better to set the preference for own MediaWiki names in Language::getTranslatedLanguageNames. More consistent and saves some code :)
Also update Babel to use that function.
Aaron Schulz [Sun, 18 Dec 2011 16:35:45 +0000 (16:35 +0000)]
FU r106514: use base 16 SHA-1 to be consistent with image info
Robin Pepermans [Sun, 18 Dec 2011 16:25:45 +0000 (16:25 +0000)]
Remove ltr class (see r89466), it should not be used at all, because 1) the name is too general, 2) it is automatically added to the body element (colliding class names) and 3) it is better to use HTML dir="ltr" as in r105929.
Alexandre Emsenhuber [Sun, 18 Dec 2011 16:02:14 +0000 (16:02 +0000)]
And I of course forgot to commit ProtectionForm.php in r106567...
Alexandre Emsenhuber [Sun, 18 Dec 2011 16:01:31 +0000 (16:01 +0000)]
* Merged WikiPage::updateRestrictions() and Title::updateTitleProtection() into WikiPage::doUpdateRestrictions(); older methods still work for backward compatibility, but marked Title::updateTitleProtection() as deprecated and for removal in 1.20 since no extension calls it
* Removed permissions check from WikiPage::doUpdateRestrictions() and left it for callers, resolves the todo from documentation
* Inverted $expiry and $reason parameter between WikiPage::doUpdateRestrictions() and WikiPage::updateRestrictions() for more consistency; WikiPage::doUpdateRestrictions() also requires all parameters to be passed
* WikiPage::doUpdateRestrictions() returns a Status object instead of bool for the older one; only possible error at the moment is a read-only database
* Updated core calls to these functions
* Made maintenance scripts using it simply protect all actions returned by Title::getRestrictionTypes() instead of hardcoded 'edit' and 'move'
* This also means that protect.php can be used to protect a non-existing page for creation
Alexandre Emsenhuber [Sun, 18 Dec 2011 14:48:23 +0000 (14:48 +0000)]
Revert r106545 and pass a null variable by ref (also updated the documentation) so that the hook is called at the correct moment and after everything is executed.
This is *exactly* the same behaviour as before r88898 since $article was an out parameter to fill $wgArticle correctly.
Alexandre Emsenhuber [Sun, 18 Dec 2011 14:07:01 +0000 (14:07 +0000)]
Pass the User object to Revision::userCan()
Robin Pepermans [Sun, 18 Dec 2011 13:50:34 +0000 (13:50 +0000)]
Clarify documentation
Robin Pepermans [Sun, 18 Dec 2011 12:17:12 +0000 (12:17 +0000)]
Make the output consistent when no second parameter is given and second parameter equals first parameter. This gives preference to names defined in MediaWiki, but when it is not in MediaWiki, it also sees whether there is one defined in the translated language names.
Mark A. Hershberger [Sun, 18 Dec 2011 01:46:25 +0000 (01:46 +0000)]
followup r88898 -- move BeforeInitialize hook to where it can be
called in a way that matches the documented parameters
As it was, when an extension tried to use BeforeInitialize with the
documented parameters this resulted in an exception:
Detected bug in an extension! Hook HookFunctionName has invalid
call signature; Parameter 2 to HookFunctionName() expected to be a
reference, value given
Mark A. Hershberger [Sun, 18 Dec 2011 01:32:11 +0000 (01:32 +0000)]
w/s
Aaron Schulz [Sat, 17 Dec 2011 23:14:39 +0000 (23:14 +0000)]
Kill some useless code in r106514
Sam Reed [Sat, 17 Dec 2011 19:55:49 +0000 (19:55 +0000)]
Per bug 28901, and Duplicatebug on r105831, only list the Article ID if it has already been loaded
Not a long term fix, but saves potentially a lot of database queries to lookup article ids, until the other issues on bug 28901 are tidied up
Sam Reed [Sat, 17 Dec 2011 19:10:33 +0000 (19:10 +0000)]
More example conversions/additions
Ping r106439
Alexandre Emsenhuber [Sat, 17 Dec 2011 18:52:52 +0000 (18:52 +0000)]
Pass the User object to Title::userCan()
Robin Pepermans [Sat, 17 Dec 2011 18:31:25 +0000 (18:31 +0000)]
Follow-up r92924: move the CSS/JS for e-mail validation to Special:ChangeEmail.
Also merge the different LTR/RTL styles, it is flipped anyway.
Aaron Schulz [Sat, 17 Dec 2011 18:27:38 +0000 (18:27 +0000)]
Expose rev_sha1/ar_sha1 to API (bug 21860)
Leons Petrazickis [Sat, 17 Dec 2011 15:59:21 +0000 (15:59 +0000)]
Fixes to address MaxSem's comment on r106480 regarding DB2 tables.sql syntax, indentation, and capitalization:
* Made all table and column names lowercase for consistency
* Removed " from around some "identifiers". Not necessary for DB2.
* Applied consistent indentation to all table declarations
* Applied consistent indentation to all index declarations
* Moved all PRIMARY KEY clauses to their own line for consistency and max line length
* Moved all ON clauses to their own line for consistency and max line length
* Fixed vertical alignment for column names and data types, remove all other vertical alignment
* Removed commented out references to SEQUENCE values, as they are used in neither DB2 nor MySQL schemas.
* Consistent spacing around parens () and commas ,
* Capitalized all data types.
* Note: tables.sql is approaching DB2's 32k limit. It will need to be split into two files soon.
Alexandre Emsenhuber [Sat, 17 Dec 2011 13:24:40 +0000 (13:24 +0000)]
Use local context to get messages
Alexandre Emsenhuber [Sat, 17 Dec 2011 13:10:48 +0000 (13:10 +0000)]
Per Aaron, fix typo in r102187
Aaron Schulz [Sat, 17 Dec 2011 05:02:15 +0000 (05:02 +0000)]
FU r98698: Show any PHP warnings in tryRespondFromFileCache() in debug mode
Jeroen De Dauw [Fri, 16 Dec 2011 23:13:10 +0000 (23:13 +0000)]
follow up to r106456 - use one setting instead two, which apparently made my commit into a fixme
Platonides [Fri, 16 Dec 2011 22:33:02 +0000 (22:33 +0000)]
Fix parser error in r106480.
PHP Parse error: syntax error, unexpected T_ARRAY, expecting ')' in includes/installer/Ibm_db2Updater.php on line 55
Leons Petrazickis [Fri, 16 Dec 2011 21:17:20 +0000 (21:17 +0000)]
Fixes to DB2 support:
* Database schema update to reflect 1.18 and 1.19 changes.
* Better support for numRows() and dataSeek() functions on DB2 result sets.
* Updates to DB2 installer and updater classes.
* Developed by Andre, Diego, and other students at Minho University and reviewed by me.
* See r85885, r85896.
Alexandre Emsenhuber [Fri, 16 Dec 2011 20:57:15 +0000 (20:57 +0000)]
Fix for r106476: forgot to remove debugging code
Alexandre Emsenhuber [Fri, 16 Dec 2011 20:55:54 +0000 (20:55 +0000)]
Per Aaron, fix for r105764: only set the timestamp if it's set in the cached ParserOutput object
Russ Nelson [Fri, 16 Dec 2011 20:01:08 +0000 (20:01 +0000)]
clean up temp files. Fixes r99546 only better this time.
Russ Nelson [Fri, 16 Dec 2011 19:59:58 +0000 (19:59 +0000)]
clean up temp files. Fixes r99546
Alexandre Emsenhuber [Fri, 16 Dec 2011 18:55:20 +0000 (18:55 +0000)]
Use WikiPage instead of Article to call doEdit()
Jeroen De Dauw [Fri, 16 Dec 2011 18:32:45 +0000 (18:32 +0000)]
introduce a new setting that allows extension authors to whitelist deprecated funtion usage for functions they do not wish to update due to backward compat reasons for a while
Jeroen De Dauw [Fri, 16 Dec 2011 18:17:04 +0000 (18:17 +0000)]
follow up to r106094
Mark A. Hershberger [Fri, 16 Dec 2011 17:19:45 +0000 (17:19 +0000)]
followup r103467 - Make sure we pass a user object when we call LoginAuthenticateAudit with self::ILLEGAL
Sam Reed [Fri, 16 Dec 2011 15:45:16 +0000 (15:45 +0000)]
Convert a few more descriptions
Ping r106439
Sam Reed [Fri, 16 Dec 2011 15:28:35 +0000 (15:28 +0000)]
Prep work for * (bug 33147) API examples should explain what they do
Now formatted in the autogenerated documentation
Format for paraminfo adds a description attribute to output
query allimages descriptions are tranformed, need to do/add to other ones
Niklas Laxström [Fri, 16 Dec 2011 10:58:20 +0000 (10:58 +0000)]
Stylize
Niklas Laxström [Fri, 16 Dec 2011 09:29:18 +0000 (09:29 +0000)]
Stylize
Niklas Laxström [Fri, 16 Dec 2011 09:22:07 +0000 (09:22 +0000)]
r98539 - make a note of change in comments
Niklas Laxström [Fri, 16 Dec 2011 08:56:57 +0000 (08:56 +0000)]
Foooollowup r106373 - update comment
Jeroen De Dauw [Fri, 16 Dec 2011 00:24:00 +0000 (00:24 +0000)]
follow up to r106393 - re-add these notices, since now they wont show for people that change the depr limit to see them
Jeroen De Dauw [Thu, 15 Dec 2011 23:40:02 +0000 (23:40 +0000)]
default deprecation notice limit to 1.17, so 1.18 and 1.19 notices are not shown unless this setting is modified. fullow up to r106070 r105985. see here for motivation: lists.wikimedia.org/pipermail/wikitech-l/2011-December/056959.html
Platonides [Thu, 15 Dec 2011 22:42:16 +0000 (22:42 +0000)]
Added type hints
Platonides [Thu, 15 Dec 2011 21:53:02 +0000 (21:53 +0000)]
Follow-up r106189. The $wgUser are no longer needed.
Platonides [Thu, 15 Dec 2011 21:21:30 +0000 (21:21 +0000)]
Simplify a bit the code of r106025
Platonides [Thu, 15 Dec 2011 21:12:27 +0000 (21:12 +0000)]
Use the canonical name of the setting
Platonides [Thu, 15 Dec 2011 20:43:58 +0000 (20:43 +0000)]
Remove unneeded global
https://gerrit.wikimedia.org/r/#change,1571
Raimond Spekking [Thu, 15 Dec 2011 20:19:43 +0000 (20:19 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Sam Reed [Thu, 15 Dec 2011 18:57:53 +0000 (18:57 +0000)]
* (bug 33101) Viewing a User or User talk of username resembling IP ending with .xxx causes Internal error
Patch by Brad Jorsch
Also simplify double return null in method
Patrick Reilly [Thu, 15 Dec 2011 18:29:47 +0000 (18:29 +0000)]
add noprint to mobileview
Sam Reed [Thu, 15 Dec 2011 17:21:56 +0000 (17:21 +0000)]
Use a revision return method for revisions, follows up r105828
Chad Horohoe [Thu, 15 Dec 2011 16:52:51 +0000 (16:52 +0000)]
Get rid of a few more $wgTitles
Jeroen De Dauw [Thu, 15 Dec 2011 16:23:33 +0000 (16:23 +0000)]
follow up to r106272, alphabetical order so Nikerabbit doesnt go mad :)
Sam Reed [Thu, 15 Dec 2011 14:56:09 +0000 (14:56 +0000)]
Add a TODO with regards to existing mysql4 schemas..
Brian Wolff [Thu, 15 Dec 2011 07:17:29 +0000 (07:17 +0000)]
Throw an exception if Parser::disableCache is called before mOutput initialized (Aka when not parsing something).
So far I've encountered 2 extensions that give fatal errors from calling $wgParser->disableOutput() from hooks that are called at points where parsing is not taking place! Exception with a backtrace is much nicer than "Fatal error: Call to a member function disableCache() on a non-object..."
John Du Hart [Thu, 15 Dec 2011 02:26:14 +0000 (02:26 +0000)]
Followup r105122 & r105123, fixes and improvements per CR
Using Language::getSize per Nikerabbit
Cleanup HTML generation per brion (yay)
Neil Kandalgaonkar [Thu, 15 Dec 2011 02:06:51 +0000 (02:06 +0000)]
update messages for feedback
Neil Kandalgaonkar [Thu, 15 Dec 2011 02:06:47 +0000 (02:06 +0000)]
put bugzilla link and description into one string (description of form closer to the form itself). Fix misplaced comma.
Brion Vibber [Thu, 15 Dec 2011 01:02:25 +0000 (01:02 +0000)]
* (bug 32512) Include 'associated namespace' checkbox on Special:Contributions
patch by MrBlueSky - https://bugzilla.wikimedia.org/attachment.cgi?id=9705&action=diff
This also restructures some pieces of the form in order to better accomodate the extra checkbox (as well as those like 'deleted only' that not everybody sees)
Brion Vibber [Thu, 15 Dec 2011 00:38:09 +0000 (00:38 +0000)]
Remove stray trailing commas on last items in array literals -- this breaks IE 6/7/8
Followup r105560
Jeroen De Dauw [Wed, 14 Dec 2011 22:48:48 +0000 (22:48 +0000)]
move logging pages to logging dir
Raimond Spekking [Wed, 14 Dec 2011 20:09:13 +0000 (20:09 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Jeroen De Dauw [Wed, 14 Dec 2011 18:49:39 +0000 (18:49 +0000)]
follow up to r106215 r106218 106219 unless my search failed again, this ought to be the last one
Jeroen De Dauw [Wed, 14 Dec 2011 18:33:51 +0000 (18:33 +0000)]
follow up to r106215 r106218 forgot one >_>
Jeroen De Dauw [Wed, 14 Dec 2011 18:32:36 +0000 (18:32 +0000)]
follow up to r106215, pass user
Siebrand Mazeland [Wed, 14 Dec 2011 17:54:13 +0000 (17:54 +0000)]
WikiPage::viewUpdates() -> WikiPage::doViewUpdates()
Siebrand Mazeland [Wed, 14 Dec 2011 13:01:27 +0000 (13:01 +0000)]
Remove users of deprecated User::getSkin().