lhc/web/wiklou.git
13 years agoFollow-up r84814: revert redundant summary message addition.
Happy-melon [Sun, 27 Mar 2011 20:45:59 +0000 (20:45 +0000)]
Follow-up r84814: revert redundant summary message addition.

13 years agoFurther cleanup on installer: fix visibility of CC selector results when returning...
Brion Vibber [Sun, 27 Mar 2011 20:19:24 +0000 (20:19 +0000)]
Further cleanup on installer: fix visibility of CC selector results when returning to the options page.

13 years ago* (bug 27170) [Installer] Install now completes when choosing a CC license with the...
Brion Vibber [Sun, 27 Mar 2011 20:13:30 +0000 (20:13 +0000)]
* (bug 27170) [Installer] Install now completes when choosing a CC license with the picker

There were two things breaking this:
* X-Frame-Options forbade our final step of the license selector, or the license selection shower, from being loaded properly. This lead to it looking wrong.
* The installation URL fingerprinting broke on the long query string that's on the final step. As a result, the user's selection got saved into a different session subkey, thinking it belonged to a different installation. It would then not get seen by the surrounding page's installer instance, causing the confusion.

Fix removes the X-Frame-Options for the CC bit, and drops query strings before the rest of URL normalization in the fingerprint check so the CC bits now see the same session key as the rest.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 27 Mar 2011 20:12:23 +0000 (20:12 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-27 19:42:00 UTC)

13 years ago* (bug 26937) [Installer] Fix for Javascript-opened sections being incorrectly open...
Brion Vibber [Sun, 27 Mar 2011 19:22:14 +0000 (19:22 +0000)]
* (bug 26937) [Installer] Fix for Javascript-opened sections being incorrectly open or closed when returning to page

The sections whose visibility was being controlled by the checkbox had an initial visibility hardcoded in the page output, which had been manually set to match the expected initial default state. I've switched these to instead check what the variable is set to and base the initial style visibility on that.
Could be better to encapsulate these settings together in some way, but this'll do for now.

Note that the way these are all done now means that the sections can never be used when JS is off; if a fully-functional installer is desired in a JS-free environment, it may be necessary to change these further to default to shown, and do the initial hiding in JavaScript (could have 'flashing' issues though: the bits showing up, then quickly hiding. laaame but oh well)

13 years agoStop after replaceing the first instance
Platonides [Sun, 27 Mar 2011 17:18:52 +0000 (17:18 +0000)]
Stop after replaceing the first instance

13 years agoSwap 2 "and" for "&&"
Sam Reed [Sun, 27 Mar 2011 17:09:26 +0000 (17:09 +0000)]
Swap 2 "and" for "&&"

13 years agoAllow changePassword.php to use username or userid
Sam Reed [Sun, 27 Mar 2011 17:07:14 +0000 (17:07 +0000)]
Allow changePassword.php to use username or userid

13 years agoFollow-up r84805: convert SpecialActiveusers to not use the now-absent UsersPager.
Happy-melon [Sun, 27 Mar 2011 16:49:01 +0000 (16:49 +0000)]
Follow-up r84805: convert SpecialActiveusers to not use the now-absent UsersPager.

13 years agoDon't assume newFileFromKey always returns a File object (some repos many not support...
Aaron Schulz [Sun, 27 Mar 2011 14:41:11 +0000 (14:41 +0000)]
Don't assume newFileFromKey always returns a File object (some repos many not support fetch by time or sha1 and return false)

13 years agoFix default implementation of ResourceLoaderModule::getStyles() to return an array...
Roan Kattouw [Sun, 27 Mar 2011 14:13:57 +0000 (14:13 +0000)]
Fix default implementation of ResourceLoaderModule::getStyles() to return an array, not a string. Was causing problems with another function that was being fed the return value of getStyles() and used an array type hint

13 years agoeta shows revs/pages per sec in current interval as well as overall; useful for inves...
Ariel Glenn [Sun, 27 Mar 2011 13:27:05 +0000 (13:27 +0000)]
eta shows revs/pages per sec in current interval as well as overall; useful for investigating problems, now that we have logging

13 years agoRevert r84706, r84709 (UtfNormal rewrite). Clearly more work needed to get these...
Happy-melon [Sun, 27 Mar 2011 12:21:45 +0000 (12:21 +0000)]
Revert r84706, r84709 (UtfNormal rewrite).  Clearly more work needed to get these in line with our coding standards.

13 years agoFixup whitespace from r80445
Sam Reed [Sun, 27 Mar 2011 01:27:02 +0000 (01:27 +0000)]
Fixup whitespace from r80445

13 years agoRemove remaining empty() call in r79119
Sam Reed [Sun, 27 Mar 2011 01:22:44 +0000 (01:22 +0000)]
Remove remaining empty() call in r79119

13 years ago* (bug 28263) cannot import xml with the api, when have not "import" user right,...
Sam Reed [Sun, 27 Mar 2011 01:14:57 +0000 (01:14 +0000)]
* (bug 28263) cannot import xml with the api, when have not "import" user right, but "importupload"

Normalised api user right checking to that of SpecialImport, by moving permission checks into specified code paths

Some documentation and explicit variables added while inspecting other code

13 years ago(bug 28242) Make url's of the form http://mediawiki.org/wiki/w:Somewhere_on_pedia...
Brian Wolff [Sat, 26 Mar 2011 21:06:37 +0000 (21:06 +0000)]
(bug 28242) Make url's of the form mediawiki.org/wiki/w:Somewhere_on_pedia give a 301 (permenant) redirect instead of a 302.

This is to make google when indexing a page like http://mediawiki.org/wiki/w:Somewhere_on_pedia to report its target, not the
original url as the url of the page. This only affects urls where the (local) interwiki target is directly in the url.
Pages that contain #Redirect[[w:Somewhere_on_pedia]] will still use 302 (Temporary) redirects since such pages are by
no means permenantly redirected.

Also clarify docs on $wgDisableHardRedirects since the setting confused me.

See also google's spiel on 301 redirects http://www.google.com/support/webmasters/bin/answer.py?answer=93633

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 26 Mar 2011 20:55:47 +0000 (20:55 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-26 20:26:00 UTC)

13 years agoRestore calls to SpecialPage::outputHeader(), no longer called since the rewrite...
Alexandre Emsenhuber [Sat, 26 Mar 2011 19:29:03 +0000 (19:29 +0000)]
Restore calls to SpecialPage::outputHeader(), no longer called since the rewrite to subclass SpecialPage

13 years agoTopple the last bastion of global-function-based special pages. Also fix HTMLCheckFi...
Happy-melon [Sat, 26 Mar 2011 19:18:39 +0000 (19:18 +0000)]
Topple the last bastion of global-function-based special pages.  Also fix HTMLCheckField to work with GET forms.

13 years ago* (bug 28249) allow dupes in meta=allmessages&amargs
Sam Reed [Sat, 26 Mar 2011 18:52:07 +0000 (18:52 +0000)]
* (bug 28249) allow dupes in meta=allmessages&amargs

13 years agoAdd some documentation in w/c
Sam Reed [Sat, 26 Mar 2011 18:51:33 +0000 (18:51 +0000)]
Add some documentation in w/c

13 years agoFollowup r84356, don't pass title string, pass a title object
Sam Reed [Sat, 26 Mar 2011 18:46:15 +0000 (18:46 +0000)]
Followup r84356, don't pass title string, pass a title object

13 years agoFollowup r84363
Sam Reed [Sat, 26 Mar 2011 18:39:22 +0000 (18:39 +0000)]
Followup r84363

Looks like I made a complete hash of that commit. Commit correct version from vm working copy

13 years agoUpdate SpecialListfiles to subclass SpecialPage. Nearly there!
Happy-melon [Sat, 26 Mar 2011 17:50:50 +0000 (17:50 +0000)]
Update SpecialListfiles to subclass SpecialPage.  Nearly there!

13 years agoConvert SpecialListusers to subclass SpecialPage. Only two left now!
Happy-melon [Sat, 26 Mar 2011 16:40:57 +0000 (16:40 +0000)]
Convert SpecialListusers to subclass SpecialPage.  Only two left now!

13 years agoMinor: removed some typos in comment lines.
Purodha B Blissenbach [Sat, 26 Mar 2011 15:18:16 +0000 (15:18 +0000)]
Minor: removed some typos in comment lines.

13 years agoFollow-up r83336, r83460: abandon hardcoded styles altogether, and instead use a...
Happy-melon [Sat, 26 Mar 2011 13:27:50 +0000 (13:27 +0000)]
Follow-up r83336, r83460: abandon hardcoded styles altogether, and instead use a semantic element to pick up appropriate styles which are already in the global stylesheets.  This makes it easier to keep track of where we have implemented this browser-specific tweak in case we have to modify it in future.  By turning debugging on devs have already volunteered themselves to masses of gratuitous extra text-on-page, a few extra elements won't inconvenience them too much further.

13 years agoFollowup r80772
Derk-Jan Hartman [Sat, 26 Mar 2011 13:20:41 +0000 (13:20 +0000)]
Followup r80772

I'm not bored enough to actually port these IE styles into the main Chick stylesheet. So better to re-enable them until someone else is bored enough to try.

13 years agoBreak svn blame on every single line of SpecialWatchlist.php by converting it to...
Happy-melon [Sat, 26 Mar 2011 13:04:40 +0000 (13:04 +0000)]
Break svn blame on every single line of SpecialWatchlist.php by converting it to subclass SpecialPage and hence changing the indentation :D.  SpecialInterwikiWatchlist.php is virtually a clone of this code, so make it subclass in turn and remove duplication; there is probably more that could be removed.

Only three more global-function special page implementations left.  \o/

13 years agophp 5.2.3+ allow us to pass full method names
Antoine Musso [Sat, 26 Mar 2011 12:43:04 +0000 (12:43 +0000)]
php 5.2.3+ allow us to pass full method names

reverts 83878 , per CR

13 years agoAPI upload errors may now return the parameter that needs to be changed and a session...
Bryan Tong Minh [Fri, 25 Mar 2011 21:22:02 +0000 (21:22 +0000)]
API upload errors may now return the parameter that needs to be changed and a sessionkey to fix the error. This is for now only done for uploads that can be fixed by changing the filename, but may be extended later to comment and pagetext.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 25 Mar 2011 21:11:43 +0000 (21:11 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-25 20:39:00 UTC)

13 years ago(bug 28070) Fix watchlist RSS for databases that store timestamps in a real timestamp...
Bryan Tong Minh [Fri, 25 Mar 2011 21:05:43 +0000 (21:05 +0000)]
(bug 28070) Fix watchlist RSS for databases that store timestamps in a real timestamp field by using Database::timestamp(). Tested by Dan Nessett on 1.16. Not tested on trunk, but no reason why it should not work.

13 years agodon't check title permissions if upload is destined for stash anyway
Neil Kandalgaonkar [Fri, 25 Mar 2011 20:42:05 +0000 (20:42 +0000)]
don't check title permissions if upload is destined for stash anyway

13 years agochange the name of UploadBase::verifyPermissions() to verifyTitlePermissions() for...
Neil Kandalgaonkar [Fri, 25 Mar 2011 20:37:26 +0000 (20:37 +0000)]
change the name of UploadBase::verifyPermissions() to verifyTitlePermissions() for clarity. A wrapper function is left for extensions that rely on the old method

13 years agoPartial revert r78593 (adding --upgrade option to install.php). Rather than supportin...
Chad Horohoe [Fri, 25 Mar 2011 19:06:24 +0000 (19:06 +0000)]
Partial revert r78593 (adding --upgrade option to install.php). Rather than supporting the added complexity in the installer, just bail and tell them to run update.php, since they obviously have command line access :)

13 years ago(bug 27171) Incorrect error message during extension installation. lol @ PHP's scope...
Max Semenik [Fri, 25 Mar 2011 18:24:58 +0000 (18:24 +0000)]
(bug 27171) Incorrect error message during extension installation. lol @ PHP's scope rules

13 years agoFix for r81787: add the parameter to the function
Alexandre Emsenhuber [Fri, 25 Mar 2011 14:11:54 +0000 (14:11 +0000)]
Fix for r81787: add the parameter to the function

13 years agoAdd/update/improve various bits of documentation
Sam Reed [Fri, 25 Mar 2011 11:21:53 +0000 (11:21 +0000)]
Add/update/improve various bits of documentation

13 years agoRemove getFlip code duplication
Sam Reed [Fri, 25 Mar 2011 11:15:40 +0000 (11:15 +0000)]
Remove getFlip code duplication

Move usual one into ResourceLoaderModule, and then move what was in ResourceLoaderModule into ResouceLoaderFileModule

13 years agoChanges default value so that it's not converted to array( 0 => '' ) by the (array...
Alexandre Emsenhuber [Fri, 25 Mar 2011 11:07:59 +0000 (11:07 +0000)]
Changes default value so that it's not converted to array( 0 => '' ) by the (array) cast a few lines below.

This was breaking the check whether the magic word was found by Language::getMagic() or not.

13 years agoAdd/tweak/update documentation and add some explicit defintions with type descriptions
Sam Reed [Fri, 25 Mar 2011 10:56:54 +0000 (10:56 +0000)]
Add/tweak/update documentation and add some explicit defintions with type descriptions

13 years agoFollowup r84698, remove unused $db
Sam Reed [Fri, 25 Mar 2011 10:37:56 +0000 (10:37 +0000)]
Followup r84698, remove unused $db

13 years agoFix the last assignment in conditional, bit of code duplication, as the next isn...
Sam Reed [Fri, 25 Mar 2011 10:36:07 +0000 (10:36 +0000)]
Fix the last assignment in conditional, bit of code duplication, as the next isn't iterable :(

13 years agofix bug #28071. Many video previews are relatively large, esp. since MediaWiki only...
Neil Kandalgaonkar [Fri, 25 Mar 2011 06:37:26 +0000 (06:37 +0000)]
fix bug #28071. Many video previews are relatively large, esp. since MediaWiki only pulls out single frames for previews without scaling sometimes.

13 years agoFixes Bug #28214 - When page not found, sends malformed HTTP/1.x instead of HTTP...
Mark A. Hershberger [Fri, 25 Mar 2011 03:36:18 +0000 (03:36 +0000)]
Fixes Bug #28214 - When page not found, sends malformed HTTP/1.x instead of HTTP/1.1 in header of respons

Note that there are a few places in the source where headers are sent
with HTTP/1.0 instead of HTTP/1.1 but this patch doesa not address those

13 years agoMove WatchlistEditor.php to /specials since inside it is essentially a complete speci...
Happy-melon [Thu, 24 Mar 2011 23:28:39 +0000 (23:28 +0000)]
Move WatchlistEditor.php to /specials since inside it is essentially a complete special page.  Make it subclass SpecialPage and do all the usual stuff.  Rewrite it to use HTMLForm and other exciting things, and give it a good general clean up.

13 years agoRefactor the get-legend-for-section-fieldset logic out into its own function so it...
Happy-melon [Thu, 24 Mar 2011 22:46:07 +0000 (22:46 +0000)]
Refactor the get-legend-for-section-fieldset logic out into its own function so it can be overridden.

13 years agoUse class name Html in canonical form.
Platonides [Thu, 24 Mar 2011 21:35:14 +0000 (21:35 +0000)]
Use class name Html in canonical form.
Removed unused globals $wgHooks, $wgBlockAllowsUTEdit, $wgUser, $wgOut
$wgUser was already set global at function beginning.
Moved global out of switch

13 years agoFollow up to r84638. Moving the $wgUser global, and fixing formatting.
Ryan Lane [Thu, 24 Mar 2011 21:32:08 +0000 (21:32 +0000)]
Follow up to r84638. Moving the $wgUser global, and fixing formatting.

13 years agoCommiting simplest hack fix for strict errors
Sam Reed [Thu, 24 Mar 2011 21:21:15 +0000 (21:21 +0000)]
Commiting simplest hack fix for strict errors

Instantiating new instance of UtfNormal

Will probably nee tidying up later, if we have some other instance we can normally use

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 24 Mar 2011 21:05:31 +0000 (21:05 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-24 20:39:00 UTC)

13 years ago(bug 5303) Merge UtfNormal rewrite. Patch by Ludovic Arnaud (YuviPanda). This is...
Happy-melon [Thu, 24 Mar 2011 20:51:38 +0000 (20:51 +0000)]
(bug 5303) Merge UtfNormal rewrite.  Patch by Ludovic Arnaud (YuviPanda).  This is well beyond my ability to review... :D

13 years agoFollowup r79549, only try and filter by group (or right) if there are some groups...
Sam Reed [Thu, 24 Mar 2011 20:27:30 +0000 (20:27 +0000)]
Followup r79549, only try and filter by group (or right) if there are some groups to do a WHERE on

13 years ago* (bug 28226) prop=extlinks&eloffset should be an integer
Sam Reed [Thu, 24 Mar 2011 20:05:45 +0000 (20:05 +0000)]
* (bug 28226) prop=extlinks&eloffset should be an integer

13 years agoRemove 2 erroneous $db parameters from External links modules
Sam Reed [Thu, 24 Mar 2011 20:02:41 +0000 (20:02 +0000)]
Remove 2 erroneous $db parameters from External links modules

13 years ago* Follow-up for r84660:
Aaron Schulz [Thu, 24 Mar 2011 18:39:30 +0000 (18:39 +0000)]
* Follow-up for r84660:
** Don't regress in terms of making sure truncating and adding an ellipses won't make the string longer (or equally long)
** Fixed ellipsis adjustment check in truncateHtml()
* Other:
** Made removeBadCharLast/removeBadCharFirst not give warnings on empty string input
** Removed tidy call in truncateHtml, slower and adds some garbage
** Code comment tweaks

13 years agoDon't pass $this by reference
Sam Reed [Thu, 24 Mar 2011 11:11:15 +0000 (11:11 +0000)]
Don't pass $this by reference

13 years agoFollow-up r84659: no need to pass parser by reference to event handlers
Aaron Schulz [Thu, 24 Mar 2011 08:44:42 +0000 (08:44 +0000)]
Follow-up r84659: no need to pass parser by reference to event handlers

13 years agoRevert r84615, complaints received from ml.wikipedia.org. Just because a language...
Tim Starling [Thu, 24 Mar 2011 04:24:30 +0000 (04:24 +0000)]
Revert r84615, complaints received from ml.wikipedia.org. Just because a language has its own set of numerals doesn't mean writers of that language prefer to use them. You can make these changes on a case-by-case basis, after community consultation.

13 years ago(follow-up r84660) Per comments, make truncate return original string instead of...
Brian Wolff [Thu, 24 Mar 2011 03:39:21 +0000 (03:39 +0000)]
(follow-up r84660) Per comments, make truncate return original string instead of ellipsis if string is smaller then length and ellipsis is not.

13 years agoBetter RELEASE-NOTES for r79520, also taking it's follow ups into account.
Daniel Friesen [Thu, 24 Mar 2011 03:00:31 +0000 (03:00 +0000)]
Better RELEASE-NOTES for r79520, also taking it's follow ups into account.

13 years ago(follow-up 79778) Make $wgLang->truncate function consider the length of the ......
Brian Wolff [Thu, 24 Mar 2011 02:54:11 +0000 (02:54 +0000)]
(follow-up 79778) Make $wgLang->truncate function consider the length of the ... (ellipsis message) in the truncation length.

The length of this message varries by localization, so the previous solution of telling truncate to truncate 5 bytes
less than needed is not good since this will be too little or too much.

Updated places where its used. Some places I left as is, as it looked like the new behaviour would work fine for them to.
(for example, the autosummary feature - it was cutting off at 200 bytes, which is no where near 250 limit, so I presume that
was for asethic reasons rather then to fit as much in before the db limit).

Will do another commit for extension callers in a moment.

13 years ago* Replaced crufty BeforeParserMakeImageLinkObj/BeforeGalleryFindFile hooks with Befor...
Aaron Schulz [Thu, 24 Mar 2011 01:44:48 +0000 (01:44 +0000)]
* Replaced crufty BeforeParserMakeImageLinkObj/BeforeGalleryFindFile hooks with BeforeParserFetchFileAndTile hook
* Updated the only calling extension (these was basically single-purpose hooks)

13 years agoAdding some type documentation to some well used globals
Sam Reed [Thu, 24 Mar 2011 00:48:22 +0000 (00:48 +0000)]
Adding some type documentation to some well used globals

13 years agoRemove some trailing whitespace
Sam Reed [Thu, 24 Mar 2011 00:43:27 +0000 (00:43 +0000)]
Remove some trailing whitespace

Add some documentation

13 years agoFollow-up r79723: even nicer whitespace :D
Happy-melon [Wed, 23 Mar 2011 22:29:56 +0000 (22:29 +0000)]
Follow-up r79723: even nicer whitespace :D

13 years agoRemoving pass by reference, and making the $error argument for doDeleteArticle a...
Ryan Lane [Wed, 23 Mar 2011 22:13:09 +0000 (22:13 +0000)]
Removing pass by reference, and making the $error argument for doDeleteArticle a reference. Follow up for r84638.

13 years agoremove terminally annoying logging message that clutters up IE. Guys, there is a...
Neil Kandalgaonkar [Wed, 23 Mar 2011 22:01:15 +0000 (22:01 +0000)]
remove terminally annoying logging message that clutters up IE. Guys, there is a distinction between debug mode for the loading system and when ordinary developers want to debug their own scripts

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 23 Mar 2011 21:58:41 +0000 (21:58 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-23 21:48:00 UTC)

13 years agoMoving deletion hooks into doArticleDelete so that other code can sanely delete artic...
Ryan Lane [Wed, 23 Mar 2011 21:54:59 +0000 (21:54 +0000)]
Moving deletion hooks into doArticleDelete so that other code can sanely delete articles. Fixed other core code that was wrapping the calls with hook calls.

13 years agoFollow-up r84610: made makeImage() b/c for callers
Aaron Schulz [Wed, 23 Mar 2011 21:45:32 +0000 (21:45 +0000)]
Follow-up r84610: made makeImage() b/c for callers

13 years ago* Follow-up r84610: don't assume a Parser object is attached
Aaron Schulz [Wed, 23 Mar 2011 21:21:31 +0000 (21:21 +0000)]
* Follow-up r84610: don't assume a Parser object is attached
* Removed unused $i var

13 years ago$wgUser->blockedBy() already returns a name, doesn't need to be passed through User...
Happy-melon [Wed, 23 Mar 2011 18:53:50 +0000 (18:53 +0000)]
$wgUser->blockedBy() already returns a name, doesn't need to be passed through User::whoIs().  Probably something I broke at some point :D

13 years agoStraighten out dependency handling from r84610 (files) and before (templates)
Aaron Schulz [Wed, 23 Mar 2011 18:23:55 +0000 (18:23 +0000)]
Straighten out dependency handling from r84610 (files) and before (templates)

13 years agoAdded 11 more sets of numbered list localisations
Sam Reed [Wed, 23 Mar 2011 17:45:53 +0000 (17:45 +0000)]
Added 11 more sets of numbered list localisations

Based on http://help.dottoro.com/lccatosn.php

Probably some more that can be done, but I don't know the language codes well enough

13 years agoBump RL filter version to 4 to keep it in sync with the cluster. WMF-centrism, I...
Roan Kattouw [Wed, 23 Mar 2011 17:45:00 +0000 (17:45 +0000)]
Bump RL filter version to 4 to keep it in sync with the cluster. WMF-centrism, I know, sue me ;)

13 years ago* Put parser output file version tracking to core
Aaron Schulz [Wed, 23 Mar 2011 17:35:40 +0000 (17:35 +0000)]
* Put parser output file version tracking to core
* Added some ParserOutput accessors
* A few cleanups to fetchFile()

13 years agoAdd localised number listing for Oriya
Sam Reed [Wed, 23 Mar 2011 17:19:23 +0000 (17:19 +0000)]
Add localised number listing for Oriya

13 years ago* Made BeforeParserMakeImageLinkObj/BeforeGalleryFindFile let hooks set sha1 parameter
Aaron Schulz [Wed, 23 Mar 2011 03:13:37 +0000 (03:13 +0000)]
* Made BeforeParserMakeImageLinkObj/BeforeGalleryFindFile let hooks set sha1 parameter
* Made FlaggedRevs specify files by sha1,timestamp to handle renames with no redirects. This makes them handled as well as templates in this regard. (bug 27836)
* Moved BeforeGalleryFindFile hook to proper place (don't trigger for non-NS_FILE titles)
* Removed unused mRevisionId field from ImageGallery
* Removed old hotfix from makeMediaLinkObj(); all the current callers would crash beforehand if the title was null anyway
* Updated hook docs (some prior params were missing)
* Broke some long lines and cleaned up some whitespace
* TODO: track file info in core rather than fr_fileSHA1Keys and ugly, duplicated, queries. This should be easy to do now.

13 years agoTry to untangle the autoblock time logic, which made very little sense and led to...
Happy-melon [Wed, 23 Mar 2011 00:10:46 +0000 (00:10 +0000)]
Try to untangle the autoblock time logic, which made very little sense and led to very old indefinite blocks triggering autoblocks with ipb_expiry < ipb_timestamp.

13 years agoPartial revert to r83979
Sam Reed [Tue, 22 Mar 2011 22:49:39 +0000 (22:49 +0000)]
Partial revert to r83979

Reverting code in SpecialUpload, as it broke errors, leaving the other changes in place, as they are fine

13 years ago* (bug 28166) UploadBase assumes that 'edit' and 'upload' rights are not per page...
Sam Reed [Tue, 22 Mar 2011 22:36:56 +0000 (22:36 +0000)]
* (bug 28166) UploadBase assumes that 'edit' and 'upload' rights are not per page restrictions

* (bug 27470) Upload blacklist for target names not being applied

Add core bug to RELEASE-NOTES

Both fixed with r84573 and r84575

However, seems I broke some error handling in r83979, will investigate

13 years agoRemove sneaky space in class-> method() call
Antoine Musso [Tue, 22 Mar 2011 22:26:58 +0000 (22:26 +0000)]
Remove sneaky space in class-> method() call

follow up r82406

13 years agoFollowup r65898, fix inverse logic for title existence
Sam Reed [Tue, 22 Mar 2011 22:22:39 +0000 (22:22 +0000)]
Followup r65898, fix inverse logic for title existence

Related to bug 27470 and bug 28166

13 years agoFollow-up r84565: Whitespace
Krinkle [Tue, 22 Mar 2011 21:44:18 +0000 (21:44 +0000)]
Follow-up r84565: Whitespace

13 years agoFixing bug 27764. Adding an extra if-check to make sure ['text'] is defined. In To...
Krinkle [Tue, 22 Mar 2011 21:42:16 +0000 (21:42 +0000)]
Fixing bug 27764. Adding an extra if-check to make sure ['text'] is defined. In To avoid wrapping multiple 'if shorthands', converted it to an actual if-statement at the same time

13 years agofindhooks.php: also check for Hooks::run, not just wfRunHooks. Hooks class has existe...
Jack Phoenix [Tue, 22 Mar 2011 20:44:26 +0000 (20:44 +0000)]
findhooks.php: also check for Hooks::run, not just wfRunHooks. Hooks class has existed since r80435 but IIRC nothing in core calls it (yet). Also added some braces and tweaked docs.

13 years agoMade FileRepo::newFileFromKey actually work
Aaron Schulz [Tue, 22 Mar 2011 20:34:50 +0000 (20:34 +0000)]
Made FileRepo::newFileFromKey actually work

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 22 Mar 2011 20:33:52 +0000 (20:33 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-22 19:57:00 UTC)

13 years agocoding style tweaks, doc updates, marked some public functions as such
Jack Phoenix [Tue, 22 Mar 2011 20:23:52 +0000 (20:23 +0000)]
coding style tweaks, doc updates, marked some public functions as such

13 years agoBug 28184 - Namespaces for the Latgalian Wikipedia
Raimond Spekking [Tue, 22 Mar 2011 19:02:48 +0000 (19:02 +0000)]
Bug 28184 - Namespaces for the Latgalian Wikipedia
Pls sync with 1.17wmf1. Thanks.

13 years agoFix "$1 is already blocked" parameter-not-passed-to-message error
Happy-melon [Tue, 22 Mar 2011 17:26:32 +0000 (17:26 +0000)]
Fix "$1 is already blocked" parameter-not-passed-to-message error

13 years ago(hopefully) last bit of heavy lifting in Block.php: now that we've internalised most...
Happy-melon [Tue, 22 Mar 2011 17:18:15 +0000 (17:18 +0000)]
(hopefully) last bit of heavy lifting in Block.php: now that we've internalised most of the variables, untangle their twisted connections to the database layer and remove various now-unused protected methods and variables.

13 years agoCleanup r80892, r84485: Check user also in sqlite for consistency.
Chad Horohoe [Tue, 22 Mar 2011 15:59:50 +0000 (15:59 +0000)]
Cleanup r80892, r84485: Check user also in sqlite for consistency.

13 years agoFollowup r84527, forgot to press save on R-N changes
Chad Horohoe [Tue, 22 Mar 2011 13:59:00 +0000 (13:59 +0000)]
Followup r84527, forgot to press save on R-N changes

13 years ago(bug 26866) remove trackback user right from DefaultSettings.php
Chad Horohoe [Tue, 22 Mar 2011 13:57:11 +0000 (13:57 +0000)]
(bug 26866) remove trackback user right from DefaultSettings.php

13 years ago* Avoid adding DISTINCT if possible
Aaron Schulz [Tue, 22 Mar 2011 13:11:28 +0000 (13:11 +0000)]
* Avoid adding DISTINCT if possible
* Added comments

13 years agoFixed daft error in r84523 so "angry" autoblocks work again
Aaron Schulz [Tue, 22 Mar 2011 11:51:09 +0000 (11:51 +0000)]
Fixed daft error in r84523 so "angry" autoblocks work again