lhc/web/wiklou.git
12 years agoStyle fixups
Mark A. Hershberger [Tue, 1 Nov 2011 16:07:09 +0000 (16:07 +0000)]
Style fixups

12 years agospace to tab
Antoine Musso [Tue, 1 Nov 2011 16:00:49 +0000 (16:00 +0000)]
space to tab

follow up r101480

12 years agoCache the result of User::getDefaultOptions(), so the UserGetDefaultOptions hook...
Roan Kattouw [Tue, 1 Nov 2011 15:55:57 +0000 (15:55 +0000)]
Cache the result of User::getDefaultOptions(), so the UserGetDefaultOptions hook (introduced in r97365) is run only once rather than on every call. Discovered this issue after seeing an insane number of memcached fetches in my RL2 code, caused by a UserGetDefaultOptions hook accessing the Gadgets storage backend (which has a memc layer) and being called a zillion times due to this bug.

12 years agoSome cleanup to ProtectionForm:
Alexandre Emsenhuber [Tue, 1 Nov 2011 15:45:52 +0000 (15:45 +0000)]
Some cleanup to ProtectionForm:
* When the user doesn't have permission to protect/unprotect the page, display a page with the title set to "View protection level for ...", then the permissions errors and the current protection levels. Except for the title, this was already the case for permissions errors, but when the database was read-only this was throwing an exception due to the change in OutputPage::readOnlyPage()
* Moved check for NS_MEDIAWIKI a level up, so that is it also catched on page save, and make the output in such case much more user friendly
* Changed edit token to be salted with array( 'protect', 'page name' ) (as for action=watch)
* Allow extensions to return false in ProtectionForm::save hook for consistency with other hooks and in that case fill the error message with 'hookaborted' if the extension does not provide an customised error message.
* Changed ProtectionForm::show() to accept an array of message name and its parameters in addition of a string with raw HTML and converted calls to use the new method. This also means that ProtectionForm::save can use this
* Removed the setSubtitle() call for the 'formerror' message in case of error since it's overriden by the "back link"

12 years ago(bug 32022) phpunit.php can not execute from another directory
Antoine Musso [Tue, 1 Nov 2011 15:09:52 +0000 (15:09 +0000)]
(bug 32022) phpunit.php can not execute from another directory

Adds tests/phpunit to the include_path to let PHPUnit find out our files.
Also add to change the suite.xml paths from './path' to 'path' so
stream_resolve_path() correctly find out the suite by using include_path

12 years agobug 32086 Special:Permanentlink require a parameter
Antoine Musso [Tue, 1 Nov 2011 14:21:42 +0000 (14:21 +0000)]
bug 32086 Special:Permanentlink require a parameter

When Special:Permanentlink was not given any parameter it assumed oldid=0
and redirected to the Main_Page. This make it throw an error page instead.

12 years agobug 32100 installer complains about suhosin GET limit
Antoine Musso [Tue, 1 Nov 2011 14:05:53 +0000 (14:05 +0000)]
bug 32100 installer complains about suhosin GET limit

Our logic was to warn whenever the suhosin GET limit was set.
This patch skip the warning if the limit is 1024 or more.

Also added 'qqq' message for 'config-suhosin-max-value-length'

12 years agoFix GROUP BY clause in Special:MostLinkedTemplates
Antoine Musso [Tue, 1 Nov 2011 13:14:59 +0000 (13:14 +0000)]
Fix GROUP BY clause in Special:MostLinkedTemplates

This only cause a trouble for Microsoft SQL which require the column to be
referenced by their input name, not the output one (AS alias). Might trigger
on Oracle database.

This is part of bug 31913: 'GROUP BY clauses incorrect in SQL generated
for special pages'

Need backport in REL1_18

12 years agoUpdated the title of Special:Linksearch to "External links search" and updated qqq...
Amir E. Aharoni [Tue, 1 Nov 2011 12:04:54 +0000 (12:04 +0000)]
Updated the title of Special:Linksearch to "External links search" and updated qqq documentation accordingly.

12 years agocheckbox could not be checked through URL parameter
Antoine Musso [Tue, 1 Nov 2011 09:28:51 +0000 (09:28 +0000)]
checkbox could not be checked through URL parameter

On [[Special:EmailUser]], someone ought to be able to pass the checkboxes
names to overrides the default. As an example from bug 31770, the email
user page has a checkbox wpCCMe which let the user as for a copy of the
email being send. This is a user preference.

One change that checkbox state by appending ?wpCCMe=<boolean> ie:
Special:EmailUser/Hashar?wpCCMe=0
Special:EmailUser/Hashar?wpCCMe=1

The logic added in r84814 could have allowed checkboxes to be overriden
for GET form. Unfortunately, HTMLForm is mostly with the default POST.
Hence, when appending the query parameter, we would never honor it!

The fix is to still unconditionally look at the value if the form was
correctly submitted (ie has wpEditToken) and additionaly whenever
there is a checkbox name appearing in the query (wherever it is false
or true, hence the use of getVal()).

This is a regression in REL1_18.  I dont think it deserves a release notes
since it is not fixing anything compared to 1.17.

Bug fixed:
==========
* (bug 31770) Allow URL parameter wpCCMe on Special:EmailUser
* (bug 30909) URL parameters for checkboxes in Special:Block no longer work

12 years agoFollowup r101449, just changing forceRecache isn't actually enough
Sam Reed [Tue, 1 Nov 2011 07:34:56 +0000 (07:34 +0000)]
Followup r101449, just changing forceRecache isn't actually enough

Add a method to set force to true on the options array to RebuildLocalisationCache

12 years agoBug 30120 - Interwiki links error after upgrade
Sam Reed [Tue, 1 Nov 2011 06:17:40 +0000 (06:17 +0000)]
Bug 30120 - Interwiki links error after upgrade

Per Emufarmers, in wgDBTableOptions replace TYPE with ENGINE

Should at least stop the errors. Do need to do something in the updaters (can we have some "delayed messages" or something?

Needed more for the CLI updater/update.php, as putting it in the middle of the updaters is just pointless, as it won't be seen. Needs to be at the end...

Doing it in the webupdater is saner/easier, as it'll be displayed

Certainly, this does suffice for the moment

Fine on MySQL 4, as it accepts {TYPE|ENGINE}

12 years agoFollowup r101449, bit better message output
Sam Reed [Tue, 1 Nov 2011 05:33:57 +0000 (05:33 +0000)]
Followup r101449, bit better message output

12 years agoBug 30934 - Warning: Invalid argument supplied for foreach() in /languages/Language...
Sam Reed [Tue, 1 Nov 2011 05:23:08 +0000 (05:23 +0000)]
Bug 30934 - Warning: Invalid argument supplied for foreach() in /languages/Language.php on line 423

Doing a run of doRebuildLocalisationCache on each run of update.php

12 years agoFollow-up r96261: remove the !important again, and then do the script defaults differ...
Robin Pepermans [Tue, 1 Nov 2011 00:17:37 +0000 (00:17 +0000)]
Follow-up r96261: remove the !important again, and then do the script defaults differently (so that those css rules are only for the default and don't affect when the user selected "never" or "always" underline)

12 years agoFR r101442: forgot to replace another getBlocker()->getName() with getByName()
Aaron Schulz [Tue, 1 Nov 2011 00:16:35 +0000 (00:16 +0000)]
FR r101442: forgot to replace another getBlocker()->getName() with getByName()

12 years ago(bug 31739) Made Block code support ipb_by = 0 convention with for foreign users...
Aaron Schulz [Tue, 1 Nov 2011 00:11:53 +0000 (00:11 +0000)]
(bug 31739) Made Block code support ipb_by = 0 convention with for foreign users again, as it did pre 1.18. The byText param has been restored in the Block() constructor as CentralAuth still uses it. Some callers have been updated to reflect the fact that getBlocker() may be a local User or a string username.

Ideally, we might have a ForeignUser class and a generic User interface...but this will do for now.

12 years agoMade some callers of getBlocker()->getName() just use getByName()
Aaron Schulz [Mon, 31 Oct 2011 23:37:14 +0000 (23:37 +0000)]
Made some callers of getBlocker()->getName() just use getByName()

12 years agoAnother old, uncommitted, test (passing on NtPP)
Platonides [Mon, 31 Oct 2011 22:24:26 +0000 (22:24 +0000)]
Another old, uncommitted, test (passing on NtPP)

12 years agoTemplate as parameter name.
Platonides [Mon, 31 Oct 2011 22:21:46 +0000 (22:21 +0000)]
Template as parameter name.
I had this test pending longtime, as it is failing in NativePreprocessor.

12 years agojquery.tablesorter: More selector fixes
Krinkle [Mon, 31 Oct 2011 22:20:25 +0000 (22:20 +0000)]
jquery.tablesorter: More selector fixes
* Limit to rowSpans (td or th) within tableRows that are a direct child of this table's tBody
* Follows-up r99092, r101417

12 years agojquery.tablesorter: Selector fixes
Krinkle [Mon, 31 Oct 2011 22:12:26 +0000 (22:12 +0000)]
jquery.tablesorter: Selector fixes
* Various fixes to limit the selector to the current table and avoid selecting similar elements from other, nested, tables.
* Should fix bug 32049
* Follows-up r97150 and likely some other refactoring commits

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 31 Oct 2011 20:25:58 +0000 (20:25 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFollowup to r101021, add back to Pg schema so we can install mediawiki
OverlordQ [Mon, 31 Oct 2011 20:03:43 +0000 (20:03 +0000)]
Followup to r101021, add back to Pg schema so we can install mediawiki

12 years ago* Made mRedirectTarget, mLastRevision, mTimestamp, mTouched of WikiPage protected...
Aaron Schulz [Mon, 31 Oct 2011 19:50:51 +0000 (19:50 +0000)]
* Made mRedirectTarget, mLastRevision, mTimestamp, mTouched of WikiPage protected; no outside users.
* Added TODO comment to doRollback() and fixed mLatest comment.

12 years agoPrevent notice in OutputPage by casting to an array. This already exists on the WMF...
Roan Kattouw [Mon, 31 Oct 2011 18:27:35 +0000 (18:27 +0000)]
Prevent notice in OutputPage by casting to an array. This already exists on the WMF cluster as a live hack

12 years agoRenamed annoying --iknowwhatimdoing param to --force (bug 32073)
Aaron Schulz [Mon, 31 Oct 2011 17:30:47 +0000 (17:30 +0000)]
Renamed annoying --iknowwhatimdoing param to --force (bug 32073)

12 years agoSimplify r101365, this cruft is not really needed
Max Semenik [Mon, 31 Oct 2011 17:00:29 +0000 (17:00 +0000)]
Simplify r101365, this cruft is not really needed

12 years agoFixed annoying intermittent BlockTest failures. No surprise we had 'em since blocks...
Max Semenik [Mon, 31 Oct 2011 16:54:42 +0000 (16:54 +0000)]
Fixed annoying intermittent BlockTest failures. No surprise we had 'em since blocks set to expire RIGHT NOW tend to expire at that very time:)

12 years ago* (bug 31818) 'usercreated' message now supports GENDER
Alexandre Emsenhuber [Mon, 31 Oct 2011 16:33:56 +0000 (16:33 +0000)]
* (bug 31818) 'usercreated' message now supports GENDER

12 years agoOn the preferences form, make preferences and other items at the top level of a secti...
Roan Kattouw [Mon, 31 Oct 2011 14:41:02 +0000 (14:41 +0000)]
On the preferences form, make preferences and other items at the top level of a section (e.g. with 'section' => 'foo') appear above rather than below subsections (e.g. stuff with 'section' => 'foo/bar'). This seems like natural behavior to me, but for some reason HTMLForm had it the other way around. I left the default behavior unchanged in HTMLForm and changed it only in PreferencesForm.

This change is needed for my work on the Gadgets extension in the RL2 branch (one example is adding text on top of a preferences section using a dummy type=>'info' preference, you want that to show up on top, not after all the subsections). The targeted use case (sections that contain both subsections and form elements) does not occur for core preferences, and is very uncommon in extensions. I managed to find such uses in only 3 of them: CreateAPage (in unreachable code), Tasks and EditSimilar add preferences to core sections that also contain subsections.

12 years agoFollowup r101354: pass $this to the PreferencesGetLegend hook so the callee will...
Roan Kattouw [Mon, 31 Oct 2011 13:19:38 +0000 (13:19 +0000)]
Followup r101354: pass $this to the PreferencesGetLegend hook so the callee will have a ContextSource to work with

12 years agoIntroduce the PreferencesGetLegend hook. I need this to customize the labels of ...
Roan Kattouw [Mon, 31 Oct 2011 12:36:51 +0000 (12:36 +0000)]
Introduce the PreferencesGetLegend hook. I need this to customize the labels of <fieldset>s in the preferences for the Gadgets extension in the RL2 branch and I can't think of a cleaner way to do this.

12 years agoAdd namespace gender aliases for 'stq'
Raimond Spekking [Sun, 30 Oct 2011 22:23:27 +0000 (22:23 +0000)]
Add namespace gender aliases for 'stq'
http://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion%3ARaymond&action=historysubmit&diff=95232734&oldid=95208259

12 years ago(bug 32051) Fix description for wlprop=sizes
Roan Kattouw [Sun, 30 Oct 2011 21:02:11 +0000 (21:02 +0000)]
(bug 32051) Fix description for wlprop=sizes

12 years agoFix r101294: newNullRevision isn't using selectField() or the like...it needs to...
Aaron Schulz [Sun, 30 Oct 2011 20:32:11 +0000 (20:32 +0000)]
Fix r101294: newNullRevision isn't using selectField() or the like...it needs to specify sha1

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 30 Oct 2011 20:15:17 +0000 (20:15 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoIntroduce cmstartsortkeyprefix and cmendsortkeyprefix parameters so categorized pages...
Roan Kattouw [Sun, 30 Oct 2011 18:49:26 +0000 (18:49 +0000)]
Introduce cmstartsortkeyprefix and cmendsortkeyprefix parameters so categorized pages can be looked up using a category+sortkey combination. Based on a feature request from Danny B on IRC

12 years agoHmph, yet another bug caused by not having @since
Niklas Laxström [Sun, 30 Oct 2011 13:44:27 +0000 (13:44 +0000)]
Hmph, yet another bug caused by not having @since

12 years agoFU r101021: made newNullRevision() re-use the sha1 of the reference revision
Aaron Schulz [Sun, 30 Oct 2011 00:55:35 +0000 (00:55 +0000)]
FU r101021: made newNullRevision() re-use the sha1 of the reference revision

12 years agorc_cur_time is obsolete; added comment
Aaron Schulz [Sun, 30 Oct 2011 00:36:30 +0000 (00:36 +0000)]
rc_cur_time is obsolete; added comment

12 years agoBug 31098: Template loop through MediaWiki: messages (int: function) not being detected.
Platonides [Sat, 29 Oct 2011 22:22:51 +0000 (22:22 +0000)]
Bug 31098: Template loop through MediaWiki: messages (int: function) not being detected.
The trick is not to replaceVariables() ourselves, but to leave that to the preprocessor,
which is then correctly detecting the loop.

12 years agoSuggest RewriteEngine in sample config instead of ErrorDocument to get correct status...
Aaron Schulz [Sat, 29 Oct 2011 22:07:37 +0000 (22:07 +0000)]
Suggest RewriteEngine in sample config instead of ErrorDocument to get correct status headers and short-circuit some cases (e.g. apache not bothering to hit thumb_handler for bogus urls).

12 years agoThe test "{{Foo|1=bar|2=baz}}" got removed in r96887.
Platonides [Sat, 29 Oct 2011 21:19:08 +0000 (21:19 +0000)]
The test "{{Foo|1=bar|2=baz}}" got removed in r96887.
Readding without the linestart="1", which is all the difference removed on this file in r96887.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 29 Oct 2011 19:34:33 +0000 (19:34 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFollowup r100927 and r100905, when setting a FauxRequest use the NEW context
John Du Hart [Sat, 29 Oct 2011 16:14:11 +0000 (16:14 +0000)]
Followup r100927 and r100905, when setting a FauxRequest use the NEW context

12 years ago* (bug 19186) Special:UserLogin's title on Special:SpecialPages now says "create...
Alexandre Emsenhuber [Sat, 29 Oct 2011 13:21:22 +0000 (13:21 +0000)]
* (bug 19186) Special:UserLogin's title on Special:SpecialPages now says "create account" when the user cannot create an account
* Also added a missing call to setHeaders()

12 years agoConsistency fixes:
Siebrand Mazeland [Sat, 29 Oct 2011 10:32:25 +0000 (10:32 +0000)]
Consistency fixes:
* punctuation for error messages.
* capital letter after colon

12 years agoUpdated rc_type documentation
Aaron Schulz [Sat, 29 Oct 2011 09:53:55 +0000 (09:53 +0000)]
Updated rc_type documentation

12 years agoRemove more assignments in conditionals (while each to foreach)
Sam Reed [Sat, 29 Oct 2011 02:04:27 +0000 (02:04 +0000)]
Remove more assignments in conditionals (while each to foreach)

12 years agoFollowup r100995, missed the darn @private tag
John Du Hart [Sat, 29 Oct 2011 02:01:07 +0000 (02:01 +0000)]
Followup r100995, missed the darn @private tag

12 years agoMore documentation
Sam Reed [Sat, 29 Oct 2011 01:53:28 +0000 (01:53 +0000)]
More documentation

12 years agoDie @private
Sam Reed [Sat, 29 Oct 2011 01:49:00 +0000 (01:49 +0000)]
Die @private

12 years agoKill various unused variables
Sam Reed [Sat, 29 Oct 2011 01:17:26 +0000 (01:17 +0000)]
Kill various unused variables

Comment some out also

Add some bits of documentation

12 years agoFix private member variable access, use getName(), rather than relying on __get()
Sam Reed [Sat, 29 Oct 2011 01:02:02 +0000 (01:02 +0000)]
Fix private member variable access, use getName(), rather than relying on __get()

12 years agoDisable proxy for local URLs instead of using a local proxy (which might not always...
Tobias [Fri, 28 Oct 2011 23:02:30 +0000 (23:02 +0000)]
Disable proxy for local URLs instead of using a local proxy (which might not always exist). In r61357 a comment "Not sure this makes any sense." was removed. Indeed, that comment seems to have been right :)

12 years agoFix title case.
Siebrand Mazeland [Fri, 28 Oct 2011 22:55:56 +0000 (22:55 +0000)]
Fix title case.

12 years agoFU r100716:
Aaron Schulz [Fri, 28 Oct 2011 22:21:03 +0000 (22:21 +0000)]
FU r100716:
* Pass the File object in LocalFilePurgeThumbnails so handlers can use the getRel() functions and such
* Also added the hook to hooks.txt, as this could be useful for other caches or things in thumb_handler.php

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 28 Oct 2011 19:53:17 +0000 (19:53 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFU r101117:
Aaron Schulz [Fri, 28 Oct 2011 19:50:25 +0000 (19:50 +0000)]
FU r101117:
* Moved 'checkCache' callback to cURL function as the 'fillCache' function is only ever called from that function

12 years agoFollowup r101161 having array() doesn't work so well with isset, changing to null
Sam Reed [Fri, 28 Oct 2011 19:17:44 +0000 (19:17 +0000)]
Followup r101161 having array() doesn't work so well with isset, changing to null

12 years agoMore documentation updates
Sam Reed [Fri, 28 Oct 2011 18:11:47 +0000 (18:11 +0000)]
More documentation updates

12 years agoUpdate documentation
Sam Reed [Fri, 28 Oct 2011 18:10:41 +0000 (18:10 +0000)]
Update documentation

Fix some context method calls which were considered deprecated

12 years agoFix Bug #30383 for Pg
Mark A. Hershberger [Fri, 28 Oct 2011 16:51:47 +0000 (16:51 +0000)]
Fix Bug #30383 for Pg

12 years ago* use outline instead of border to not change the dimensions of the element
Danny B [Fri, 28 Oct 2011 16:15:12 +0000 (16:15 +0000)]
* use outline instead of border to not change the dimensions of the element

12 years ago* Factorise the code used to prepare the OutputPage object to display an error page...
Alexandre Emsenhuber [Fri, 28 Oct 2011 15:45:54 +0000 (15:45 +0000)]
* Factorise the code used to prepare the OutputPage object to display an error page in OutputPage::prepareErrorPage()
* Changed default value of OutputPage::getPageTitle() to match the value of the 'internalerror' message

12 years agoAn alternative to using DOMDocument for normalizing when using Preprocessor_Hash.
Platonides [Fri, 28 Oct 2011 15:13:27 +0000 (15:13 +0000)]
An alternative to using DOMDocument for normalizing when using Preprocessor_Hash.
Follow-up r99909.

12 years agoFollow-up r99909. If there is a preprocessToXml method, use that.
Platonides [Fri, 28 Oct 2011 15:02:10 +0000 (15:02 +0000)]
Follow-up r99909. If there is a preprocessToXml method, use that.
Some preprocessor could have preprocessToObj as a native type.

PHP Fatal error:  Call to a member function __toString() on a non-object in phase3/tests/phpunit/includes/parser/PreprocessorTest.php on line 119

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Fri, 28 Oct 2011 12:39:20 +0000 (12:39 +0000)]
* Use local context to get messages
* Also override QuickTemplate::msg(), QuickTemplate::msgHtml() and QuickTemplate::msgWiki() in BaseTemplate to use the context

12 years agosvn:eol-style native
Alexandre Emsenhuber [Fri, 28 Oct 2011 12:32:48 +0000 (12:32 +0000)]
svn:eol-style native

12 years agoPass the (correct) session doApiRequest()
Alexandre Emsenhuber [Fri, 28 Oct 2011 12:18:43 +0000 (12:18 +0000)]
Pass the (correct) session doApiRequest()

12 years agoFollowup to r101120, replaced hardcoded parentheses with the 'parentheses' message.
Amir E. Aharoni [Fri, 28 Oct 2011 08:04:58 +0000 (08:04 +0000)]
Followup to r101120, replaced hardcoded parentheses with the 'parentheses' message.

12 years agoAdding dirmark after changed bytes to prevent mixing with LTR usernames and summaries.
Amir E. Aharoni [Fri, 28 Oct 2011 06:04:22 +0000 (06:04 +0000)]
Adding dirmark after changed bytes to prevent mixing with LTR usernames and summaries.

12 years agoFU r100535:
Aaron Schulz [Fri, 28 Oct 2011 05:12:12 +0000 (05:12 +0000)]
FU r100535:
* Thumb handler can now also work without cURL
* Combined related config vars into array config vars
* Folded $thgThumb404File into $thgThumbCallbacks
* Avoided some global pollution

12 years agoRm unused parameter
Chad Horohoe [Fri, 28 Oct 2011 03:01:57 +0000 (03:01 +0000)]
Rm unused parameter

12 years agoBreak long lines (and prove svn is working)
Chad Horohoe [Fri, 28 Oct 2011 02:25:44 +0000 (02:25 +0000)]
Break long lines (and prove svn is working)

12 years agoRemoved $wgUseNormalUser var; not used by any scripts anymore
Aaron Schulz [Fri, 28 Oct 2011 01:16:18 +0000 (01:16 +0000)]
Removed $wgUseNormalUser var; not used by any scripts anymore

12 years agoFixes Bug #6793 — “New Variable __NEWSECTIONS__ like __TOC__” by
Mark A. Hershberger [Thu, 27 Oct 2011 23:55:29 +0000 (23:55 +0000)]
Fixes Bug #6793 — “New Variable __NEWSECTIONS__ like __TOC__” by
adding Nx.devnull's patch that adds a hook needed by
Extension:PlaceNewSection.

12 years agoBug 32004 - [regression?] style class .mw-specialpagecached for Special:SpecialPages...
Sam Reed [Thu, 27 Oct 2011 23:43:39 +0000 (23:43 +0000)]
Bug 32004 - [regression?] style class .mw-specialpagecached for Special:SpecialPages is not defined

Patch by MrBlueSky

12 years agoReverted r84395,r98710: thumbnails must be purged on file deletion
Aaron Schulz [Thu, 27 Oct 2011 23:34:54 +0000 (23:34 +0000)]
Reverted r84395,r98710: thumbnails must be purged on file deletion

12 years agoAdd dropTable method
Sam Reed [Thu, 27 Oct 2011 23:07:04 +0000 (23:07 +0000)]
Add dropTable method

12 years agoFU r100535: renamed thumb-handler.php to match the other files here
Aaron Schulz [Thu, 27 Oct 2011 22:42:53 +0000 (22:42 +0000)]
FU r100535: renamed thumb-handler.php to match the other files here

12 years agoAdded pfunc profiling to braceSubstitution()
Aaron Schulz [Thu, 27 Oct 2011 21:53:37 +0000 (21:53 +0000)]
Added pfunc profiling to braceSubstitution()

12 years agoConvert the string to single quoted and manually escape it.
Platonides [Thu, 27 Oct 2011 21:18:01 +0000 (21:18 +0000)]
Convert the string to single quoted and manually escape it.
http://us.php.net/manual/en/language.types.string.php

addslashes() is convenient, but this way we have no legitimate
usage, and it's easier to have it banned everywhere.

12 years agoFollowup r100905, disabling testGetRollbackToken because it reports as failed on...
John Du Hart [Thu, 27 Oct 2011 21:01:28 +0000 (21:01 +0000)]
Followup r100905, disabling testGetRollbackToken because it reports as failed on Jenkins but no one can reproduce it.

12 years agoFU r100915: split out GlobalWithDBTest (tests which need the DB)
Aaron Schulz [Thu, 27 Oct 2011 20:54:27 +0000 (20:54 +0000)]
FU r100915: split out GlobalWithDBTest (tests which need the DB)

12 years agoThe early return added in r98698 was skipping the closing wfProfileOut().
Platonides [Thu, 27 Oct 2011 20:50:07 +0000 (20:50 +0000)]
The early return added in r98698 was skipping the closing wfProfileOut().

12 years agoRemoval of unused globals
Platonides [Thu, 27 Oct 2011 20:48:09 +0000 (20:48 +0000)]
Removal of unused globals

12 years agoPer Nikerabbit's comment on r100621:
Alexandre Emsenhuber [Thu, 27 Oct 2011 20:23:16 +0000 (20:23 +0000)]
Per Nikerabbit's comment on r100621:
* Removed OutputPage::setPageTitleMsg() and OutputPage::setHTMLTitleMsg() and make OutputPage::setPageTitle() and OutputPage::setHTMLTitle() accept a Message object
* Updated core calls (including some that I missed last time because of non-matching case)
* Added Message::setContext() and use it in RequestContext so that I don't need to duplicate the call in OutputPage
* Yes, I'm calling $this->msg() on places and then setting the context one more time in OutputPage::setPageTitle() or OutputPage::setHTMLTitle(), but at least I won't be confused about which objects $

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 27 Oct 2011 20:00:32 +0000 (20:00 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* Added pageJoinCond() and userJoinCond() to Revision and exposed them publicly
Aaron Schulz [Thu, 27 Oct 2011 19:55:00 +0000 (19:55 +0000)]
* Added pageJoinCond() and userJoinCond() to Revision and exposed them publicly
* Removed commented-out code

12 years agoFix for r100905:
Alexandre Emsenhuber [Thu, 27 Oct 2011 18:46:40 +0000 (18:46 +0000)]
Fix for r100905:
* Make tests work again
* Added ApiTestCase::doApiRequest() and related to pass it to the context and removed override of $wgUser where possible
* Fix ApiLogin to get the correct User object (i.e. the logged in one)
* Fix ApiBase to feed a RequestContext to setContext() so that ApiLogin can call setUser()

12 years agoReinstated r94289 et all - rev_sha1/ar_sha1 field for bug 21860
Aaron Schulz [Thu, 27 Oct 2011 18:44:10 +0000 (18:44 +0000)]
Reinstated r94289 et all - rev_sha1/ar_sha1 field for bug 21860

12 years agoAdded default updateSkippedMessage() message
Aaron Schulz [Thu, 27 Oct 2011 18:37:11 +0000 (18:37 +0000)]
Added default updateSkippedMessage() message

12 years agoSet batch size in PopulateRevisionLength
Aaron Schulz [Thu, 27 Oct 2011 18:32:52 +0000 (18:32 +0000)]
Set batch size in PopulateRevisionLength

12 years ago* Pass in $user to Revision::getText()
Aaron Schulz [Thu, 27 Oct 2011 18:24:49 +0000 (18:24 +0000)]
* Pass in $user to Revision::getText()
* Minor style cleanups

12 years agoFixes Bug #28277 by allowing redirects on the stream reader. Fixes a
Mark A. Hershberger [Thu, 27 Oct 2011 17:58:30 +0000 (17:58 +0000)]
Fixes Bug #28277 by allowing redirects on the stream reader.  Fixes a
regression where pages specifying a w:en:Sprint would result in a url
like http://pt.wikipedia.org/wiki/en:Special:Export/Sprint which, at
least in 1.16, would mean the reader follow the redirect to
http://en.wikipedia.org/wiki/Special:Export/Sprint.

12 years agoparsertest now destroy virtual table under SQLite
Antoine Musso [Thu, 27 Oct 2011 17:12:53 +0000 (17:12 +0000)]
parsertest now destroy virtual table under SQLite

Fix:
Bug 29912 - Unit tests break if parsertest tables are still present

The parserTest suite duplicate available tables. When using temporary table
it assumed every table are temporary. Under SQLite searchindex is a virtual
table and thus remained after a run of parserTests.php
As a side effect, when running the PHPUnit with that remaining table, it
caused a nice error:

The last attempted database query was:
"DELETE FROM unittest_parsertest_searchindex"
from within function "MediaWikiTestCase::resetDB".
Database returned error "1: SQL logic error or missing database"

This patch is not needed for REL1_18 continuous integration since we
never run the parserTests.php script.

12 years agoRemove todo, it's public now
John Du Hart [Thu, 27 Oct 2011 16:12:22 +0000 (16:12 +0000)]
Remove todo, it's public now

12 years agoUse canonical case
Platonides [Thu, 27 Oct 2011 15:54:49 +0000 (15:54 +0000)]
Use canonical case