Commit graph

24048 commits

Author SHA1 Message Date
Chad Horohoe
9ee17e43f6 Simplify $assoc check 2011-12-20 20:15:42 +00:00
Aaron Schulz
9e61d94e0e FU r106770: fixed the other getTransform() call 2011-12-20 20:15:05 +00:00
Aaron Schulz
14863b9aa5 Cleaned up some references to FSRepo in code and comments. This should have no noticeable functional changes. 2011-12-20 19:25:23 +00:00
Aaron Schulz
a51a193f85 FU r106752: added b/c code to FSRepo to make things easy for extensions (like ConfirmAccount) 2011-12-20 18:55:50 +00:00
Alexandre Emsenhuber
dfbec4385b Fix casing of Language::timeanddate calls 2011-12-20 18:09:21 +00:00
Alexandre Emsenhuber
5cf8793bea Use local context to get messages 2011-12-20 18:07:19 +00:00
Jure Kajzer
ec53acbede * removed manual cascading of recentchanges on page delete
* fixed purgeCache bug in updater
* TESTED install/update from 1.18/phpunit
2011-12-20 16:11:45 +00:00
Sam Reed
a818723197 Fix AutoLoader fail from r106800 2011-12-20 15:02:39 +00:00
Sam Reed
1bbdc44b31 Move registration form template to its own file 2011-12-20 14:01:09 +00:00
Sam Reed
86b50cafed Fix for r104684
Using "$result['sectionanchor'] == ''; rather than "$result['sectionanchor'] = '';"...
2011-12-20 12:36:34 +00:00
Niklas Laxström
91a03b9b58 Fix for bug 33270: default to 'default' search profile
Had this fixed in one of my wikies but not committed
2011-12-20 11:17:36 +00:00
Brian Wolff
1427dd0d42 (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.
2011-12-20 10:15:18 +00:00
Alexandre Emsenhuber
148549a687 Fix for r102116: link feed to Special:Recentchanges, not current page 2011-12-20 09:12:20 +00:00
Aaron Schulz
967c0cbe7f FU r106752: unbreak "other sizes" links on File: pages by working around the suck /media system. 2011-12-20 08:38:55 +00:00
Brian Wolff
4fbaeb946c 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.
2011-12-20 07:55:44 +00:00
Aaron Schulz
8bf318d90f FU r106752: Fixed directory b/c for ForeignAPIRepo, which was moved to Setup.php 2011-12-20 07:53:48 +00:00
Max Semenik
6bd85a6a2c Follow-up r97303: sort module names in paraminfo's paraminfo 2011-12-20 07:50:45 +00:00
Brian Wolff
34791773f8 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. 2011-12-20 06:48:05 +00:00
Brian Wolff
957850f0da 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.
2011-12-20 06:16:08 +00:00
Tim Starling
2ba6b03e8e * 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.
2011-12-20 04:39:12 +00:00
Tim Starling
1312f8a626 Don't suppress warnings when attempting file creation for the second time, this masks important error messages 2011-12-20 04:36:27 +00:00
Ryan Kaldari
7e903243c6 $reqArr is an ambiguous variable name - req can mean required or request. Changing to an unambiguous name 2011-12-20 04:22:06 +00:00
Ryan Kaldari
ac64223568 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 2011-12-20 04:15:21 +00:00
Aaron Schulz
5275f9b097 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. 2011-12-20 03:52:06 +00:00
Aaron Schulz
e6f780d48d Reverted r101014 per CR. Added comment. The sooner RL2 kills this the better... 2011-12-20 00:57:25 +00:00
Sam Reed
c72490b6b2 Fix $imit to $limit
Followup r106567
2011-12-19 23:33:37 +00:00
Alexandre Emsenhuber
50651d4a1d Use local context to get message 2011-12-19 20:20:47 +00:00
Sam Reed
6c507f38c0 Followup r106619, mark said method public due to callers 2011-12-19 19:07:18 +00:00
Alexandre Emsenhuber
bb91f74ad2 * 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
2011-12-19 18:19:03 +00:00
Alexandre Emsenhuber
bd8d61b213 Pass the User object to Title::userCan() 2011-12-19 16:10:06 +00:00
Alexandre Emsenhuber
9717e5cb18 * Inlinise the only usage of $user in MediaWiki::main()
* Change the name of the variable containing the WikiPage object for more consistency
2011-12-19 16:05:47 +00:00
Sam Reed
8126793bbf @private is a lie, based on usage, it'd need to be at least protected
Removing useless documentation replacing with param/return doc
2011-12-19 01:07:30 +00:00
Jeroen De Dauw
c65cceab1f doc++ 2011-12-18 21:29:41 +00:00
Raimond Spekking
69e4121770 Localisation updates for core and extension messages from translatewiki.net 2011-12-18 20:47:06 +00:00
Alexandre Emsenhuber
c67fa68c7c * 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
2011-12-18 19:04:25 +00:00
Robin Pepermans
e9033cbf82 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.
2011-12-18 17:58:47 +00:00
Aaron Schulz
3a0a647efb FU r106514: use base 16 SHA-1 to be consistent with image info 2011-12-18 16:35:45 +00:00
Alexandre Emsenhuber
81de35ad40 And I of course forgot to commit ProtectionForm.php in r106567... 2011-12-18 16:02:14 +00:00
Alexandre Emsenhuber
46c5d3edad * 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
2011-12-18 16:01:31 +00:00
Alexandre Emsenhuber
921bced830 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.
2011-12-18 14:48:23 +00:00
Alexandre Emsenhuber
0eff3f59ad Pass the User object to Revision::userCan() 2011-12-18 14:07:01 +00:00
Robin Pepermans
8cae5ee72d 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. 2011-12-18 12:17:12 +00:00
Mark A. Hershberger
bbc2b0fdb1 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
2011-12-18 01:46:25 +00:00
Mark A. Hershberger
420a172641 w/s 2011-12-18 01:32:11 +00:00
Aaron Schulz
02e3ce636a Kill some useless code in r106514 2011-12-17 23:14:39 +00:00
Sam Reed
997fb135cd 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
2011-12-17 19:55:49 +00:00
Sam Reed
b0818acd86 More example conversions/additions
Ping r106439
2011-12-17 19:10:33 +00:00
Alexandre Emsenhuber
bca521187e Pass the User object to Title::userCan() 2011-12-17 18:52:52 +00:00
Robin Pepermans
59e9daf6e7 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.
2011-12-17 18:31:25 +00:00
Aaron Schulz
21ee783cbe Expose rev_sha1/ar_sha1 to API (bug 21860) 2011-12-17 18:27:38 +00:00