lhc/web/wiklou.git
13 years ago"$something ? false : true" is silly.
Aryeh Gregor [Wed, 4 Aug 2010 21:47:09 +0000 (21:47 +0000)]
"$something ? false : true" is silly.

Note: not actually tested, but it's really hard to see how it will
fail . . . really!

13 years agoFollowup r70479
Sam Reed [Wed, 4 Aug 2010 21:21:35 +0000 (21:21 +0000)]
Followup r70479

If string is required, but it's value === '', that's missing!

13 years agoFurther followup to r70460/r70461 and r70477
Sam Reed [Wed, 4 Aug 2010 21:19:53 +0000 (21:19 +0000)]
Further followup to r70460/r70461 and r70477

Move code into getParameterFromSettings, most of the flesh is there anyway (it checks isset( $value ) ), so we can use the else to check if it's required

A followup could be to whinge if '' is returned for a string

13 years agoMake search enforced by API in search by setting PARAM_REQUIRED
Sam Reed [Wed, 4 Aug 2010 20:47:58 +0000 (20:47 +0000)]
Make search enforced by API in search by setting PARAM_REQUIRED

Same for ApiQueryCategoryMembers and ApiWatch title params

More followup to r70461

13 years agoFollowup r70460/r70461
Sam Reed [Wed, 4 Aug 2010 20:27:56 +0000 (20:27 +0000)]
Followup r70460/r70461

use self consistently

Fold in duplicate loop

missingparam can be done during attempt to set ParamCache, we might aswell give up and not finish populating the param cache if we're gonna die from a missing param

13 years agoFollowup r70474 and r70461, drop missingparam from getPossibleErrors
Sam Reed [Wed, 4 Aug 2010 19:32:23 +0000 (19:32 +0000)]
Followup r70474 and r70461, drop missingparam from getPossibleErrors

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Wed, 4 Aug 2010 19:28:41 +0000 (19:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-04 18:59:00 UTC)

13 years agoFollowup r70461 if PARAM_REQUIRED is set, use for missing param in getPossibleErrors...
Sam Reed [Wed, 4 Aug 2010 19:20:15 +0000 (19:20 +0000)]
Followup r70461 if PARAM_REQUIRED is set, use for missing param in getPossibleErrors in ApiBase

All but ApiQueryBacklinks

13 years ago* Display links to book sources as external links because they are.
Danny B [Wed, 4 Aug 2010 15:45:49 +0000 (15:45 +0000)]
* Display links to book sources as external links because they are.

13 years agoFollow-up r66912: Update fallback for Uighur from ug-latn to ug-arab)
Siebrand Mazeland [Wed, 4 Aug 2010 14:41:35 +0000 (14:41 +0000)]
Follow-up r66912: Update fallback for Uighur from ug-latn to ug-arab)

13 years agoFollowup to r70460 and r70461: Use true instead of 1
X! [Wed, 4 Aug 2010 14:29:39 +0000 (14:29 +0000)]
Followup to r70460 and r70461: Use true instead of 1

13 years agoFollowup to r70460: Committed wrong version of ApiBase.php, convert all core API...
X! [Wed, 4 Aug 2010 14:15:33 +0000 (14:15 +0000)]
Followup to r70460: Committed wrong version of ApiBase.php, convert all core API modules to PARAM_REQUIRED syntax

13 years ago* PARAM_REQUIRED parameter flag added. If this flag is set, and the end user does...
X! [Wed, 4 Aug 2010 13:35:08 +0000 (13:35 +0000)]
* PARAM_REQUIRED parameter flag added. If this flag is set, and the end user does not set
  the parameter, the API will automatically throw an error.

13 years agoAdd new partial index for Postgres
Greg Sabino Mullane [Wed, 4 Aug 2010 12:40:42 +0000 (12:40 +0000)]
Add new partial index for Postgres

13 years agoCorrect casing for PL/pgSQL
Greg Sabino Mullane [Wed, 4 Aug 2010 11:58:35 +0000 (11:58 +0000)]
Correct casing for PL/pgSQL

13 years agoMinor adjustments for schema comparison
Greg Sabino Mullane [Wed, 4 Aug 2010 11:12:36 +0000 (11:12 +0000)]
Minor adjustments for schema comparison

13 years agoRemove invalid comma
Greg Sabino Mullane [Wed, 4 Aug 2010 11:09:56 +0000 (11:09 +0000)]
Remove invalid comma

13 years agoLocalization update for he.
Rotem Liss [Wed, 4 Aug 2010 10:04:26 +0000 (10:04 +0000)]
Localization update for he.

13 years agoFolloow-up r70433: Add new message key to maintenance script
Raimond Spekking [Wed, 4 Aug 2010 07:52:44 +0000 (07:52 +0000)]
Folloow-up r70433: Add new message key to maintenance script

13 years ago* (bug 24656) API's parse module needs option to disable PP report
Sam Reed [Wed, 4 Aug 2010 07:44:23 +0000 (07:44 +0000)]
* (bug 24656) API's parse module needs option to disable PP report

13 years agoX installed -> X is installed
Niklas Laxström [Wed, 4 Aug 2010 04:56:12 +0000 (04:56 +0000)]
X installed -> X is installed

Trying to make it more clear that we only detected the state and
not that we installed X now.

13 years agoPreserve cl_timestamp in updateCollation.php
Aryeh Gregor [Wed, 4 Aug 2010 00:29:20 +0000 (00:29 +0000)]
Preserve cl_timestamp in updateCollation.php

For those crazy Wikinews people, and other DPL users.  Why do we use a
crazy auto-updating column type instead of specifying the current time
explicitly when we want to update it, again . . . ?

13 years agohttp://www.mediawiki.org/wiki/User:Catrope/Stub_threshold shows us people setting...
Platonides [Tue, 3 Aug 2010 22:32:09 +0000 (22:32 +0000)]
mediawiki.org/wiki/User:Catrope/Stub_threshold shows us people setting it to insanely large values trying to disable it.
r70433 addressed the UI. Here we proxy its access via a new method getStubThreshold() that disables it if a page of such size cannot be
created (by an user), so we can serve them parser cached articles again.

13 years agoUse Disabled for the value 0 of stub threshold since there seems to be some confusion...
Platonides [Tue, 3 Aug 2010 22:13:16 +0000 (22:13 +0000)]
Use Disabled for the value 0 of stub threshold since there seems to be some confusion on how to disable it.

13 years agoTypo
Platonides [Tue, 3 Aug 2010 22:03:56 +0000 (22:03 +0000)]
Typo

13 years agoUse exact counts in updateCollation.php
Aryeh Gregor [Tue, 3 Aug 2010 21:11:16 +0000 (21:11 +0000)]
Use exact counts in updateCollation.php

There's no reason to avoid a one-time COUNT(*), is there?  It will be
free if collations are actually up-to-date, because the column is
indexed.

13 years agoDon't run updateCollations if they're up-to-date
Aryeh Gregor [Tue, 3 Aug 2010 21:07:13 +0000 (21:07 +0000)]
Don't run updateCollations if they're up-to-date

I forgot a "return;" here.

13 years agoFix breakage for people with DB prefixes
Aryeh Gregor [Tue, 3 Aug 2010 20:58:40 +0000 (20:58 +0000)]
Fix breakage for people with DB prefixes

13 years agoWhitespace, mis-spelling
Mark A. Hershberger [Tue, 3 Aug 2010 20:52:24 +0000 (20:52 +0000)]
Whitespace, mis-spelling

13 years agoRELEASE-NOTES for category changes
Aryeh Gregor [Tue, 3 Aug 2010 20:51:05 +0000 (20:51 +0000)]
RELEASE-NOTES for category changes

13 years agoClean up code now that the old path is gone
Aryeh Gregor [Tue, 3 Aug 2010 20:50:58 +0000 (20:50 +0000)]
Clean up code now that the old path is gone

13 years agoDon't duplicate the "title" query parameter
Aryeh Gregor [Tue, 3 Aug 2010 20:50:52 +0000 (20:50 +0000)]
Don't duplicate the "title" query parameter

Kind of hacky to just unset this one parameter, but it's what Pager.php
does.

13 years agoFix bug in sorting due to $wgRequest eating nulls
Aryeh Gregor [Tue, 3 Aug 2010 20:50:46 +0000 (20:50 +0000)]
Fix bug in sorting due to $wgRequest eating nulls

I'll fix this up so that the query string looks nicer later.  Embedding
nulls in query strings is not a great idea.

13 years agoFix page moves with new category sort scheme
Aryeh Gregor [Tue, 3 Aug 2010 20:50:38 +0000 (20:50 +0000)]
Fix page moves with new category sort scheme

Some other things might have to be updated, like the API and extensions.

13 years agoSort pages in categories without namespace prefix
Aryeh Gregor [Tue, 3 Aug 2010 20:50:31 +0000 (20:50 +0000)]
Sort pages in categories without namespace prefix

This removes $wgCategoryPrefixedDefaultSortkey and effectively always
makes it false.  The setting was added in the first place to hack around
the default, clearly broken behavior, but this just fixes it instead, so
the setting is no longer needed.

Running maintenance/updateCollation.php for the first time will fix
this, no need to run refreshLinks.php.  If you've already run
updateCollation.php, you can do UPDATE categorylinks SET cl_collation =
76; or such and then run the script again.

13 years agoEnable new category sort by default
Aryeh Gregor [Tue, 3 Aug 2010 20:50:01 +0000 (20:50 +0000)]
Enable new category sort by default

Patch best viewed with whitespace changes ignored.  This will doubtless
introduce a bunch of bugs.  Please report any so I can fix them.  If
they're big enough and the fix isn't obvious, please revert.

13 years agoFollow up to r69185: add documentation for wfUILang()
Niklas Laxström [Tue, 3 Aug 2010 20:39:35 +0000 (20:39 +0000)]
Follow up to r69185: add documentation for wfUILang()

13 years agoFollow-up r69898: fix Undefined variable: wgCookiePrefix in /ApiLogin.php on line 94
Siebrand Mazeland [Tue, 3 Aug 2010 20:05:38 +0000 (20:05 +0000)]
Follow-up r69898: fix Undefined variable: wgCookiePrefix in /ApiLogin.php on line 94

13 years agoFollow-up r70109: use restore_error_handler()
Niklas Laxström [Tue, 3 Aug 2010 19:46:18 +0000 (19:46 +0000)]
Follow-up r70109: use restore_error_handler()

13 years agoIf getMasterPos can be safely inherited, so can setFakeMaster
Platonides [Tue, 3 Aug 2010 19:37:46 +0000 (19:37 +0000)]
If getMasterPos can be safely inherited, so can setFakeMaster

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 3 Aug 2010 19:17:55 +0000 (19:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-03 18:53:00 UTC)

13 years agoRemove all calls to $wgMessageCache->loadAllMessages()
Platonides [Tue, 3 Aug 2010 19:15:43 +0000 (19:15 +0000)]
Remove all calls to $wgMessageCache->loadAllMessages()
Deprecated and empty since r52503

13 years agoUse int: to keep references consistent.
Siebrand Mazeland [Tue, 3 Aug 2010 19:15:23 +0000 (19:15 +0000)]
Use int: to keep references consistent.

13 years ago* fix changed link in $bookstoreList
Danny B [Tue, 3 Aug 2010 18:45:50 +0000 (18:45 +0000)]
* fix changed link in $bookstoreList

13 years agoWeigh reverse with factor 20 so coloring takes effect more quickly.
Siebrand Mazeland [Tue, 3 Aug 2010 18:42:14 +0000 (18:42 +0000)]
Weigh reverse with factor 20 so coloring takes effect more quickly.

13 years agoUse firstChar() in firstLetterForLists()
Aryeh Gregor [Tue, 3 Aug 2010 17:47:10 +0000 (17:47 +0000)]
Use firstChar() in firstLetterForLists()

This will hopefully avoid regression in non-English languages when this
stub starts being used.

13 years agoChange from global to parameter.
Platonides [Tue, 3 Aug 2010 14:16:10 +0000 (14:16 +0000)]
Change from global to parameter.

13 years agoFollow up r70356.
Platonides [Tue, 3 Aug 2010 13:23:31 +0000 (13:23 +0000)]
Follow up r70356.
Improve WebRequest getAcceptLang(): Add support for q=0 language and the special range "*", always return the language codes in lowercase.

13 years agoBold outside link
Siebrand Mazeland [Mon, 2 Aug 2010 22:08:24 +0000 (22:08 +0000)]
Bold outside link

13 years agoFix typos.
Siebrand Mazeland [Mon, 2 Aug 2010 21:58:42 +0000 (21:58 +0000)]
Fix typos.

13 years agoFix typo.
Siebrand Mazeland [Mon, 2 Aug 2010 21:41:15 +0000 (21:41 +0000)]
Fix typo.

13 years agoFollow-up to r64587:
Max Semenik [Mon, 2 Aug 2010 20:16:36 +0000 (20:16 +0000)]
Follow-up to r64587:
* Use WebRequest::getAcceptLang() instead of home-brewed code (and in LanguageConverter too).
* Refactored that function to use getHeader()

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Mon, 2 Aug 2010 19:41:49 +0000 (19:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-02 19:17:00 UTC)

13 years ago* (bug 24628) Generic translations for NS_USER/NS_USER_TALK for Esperanto
Raimond Spekking [Mon, 2 Aug 2010 19:03:18 +0000 (19:03 +0000)]
* (bug 24628) Generic translations for NS_USER/NS_USER_TALK for Esperanto

13 years agoRemoved Article::getRobotPolicyForView() - deprecated and not used anywhere
Max Semenik [Mon, 2 Aug 2010 18:51:18 +0000 (18:51 +0000)]
Removed Article::getRobotPolicyForView() - deprecated and not used anywhere

13 years agoMore message spewing reduction from r70337.
Siebrand Mazeland [Mon, 2 Aug 2010 17:46:38 +0000 (17:46 +0000)]
More message spewing reduction from r70337.

13 years agoPartially revert r70337. Let's not deprecate methods that are not even removed comple...
Siebrand Mazeland [Mon, 2 Aug 2010 17:44:31 +0000 (17:44 +0000)]
Partially revert r70337. Let's not deprecate methods that are not even removed completely from core (!!!)

13 years agoLocalization update for he.
Rotem Liss [Mon, 2 Aug 2010 16:56:36 +0000 (16:56 +0000)]
Localization update for he.

13 years agoAdd punctuation.
Siebrand Mazeland [Mon, 2 Aug 2010 16:53:36 +0000 (16:53 +0000)]
Add punctuation.

13 years agoClose bold.
Siebrand Mazeland [Mon, 2 Aug 2010 16:46:37 +0000 (16:46 +0000)]
Close bold.

13 years agoUpdate newlines.
Siebrand Mazeland [Mon, 2 Aug 2010 16:30:11 +0000 (16:30 +0000)]
Update newlines.

13 years agoCheck the link color (stub, redirect) on just one place.
Platonides [Mon, 2 Aug 2010 15:53:22 +0000 (15:53 +0000)]
Check the link color (stub, redirect) on just one place.
Deprecate makeSizeLinkObj. The only usage is in CategoryPage, which we can change to link() without penalty, since the created Title is already loaded with its length.

13 years agoA <pre> and new lines is not the best element for the Selenium output.
Platonides [Mon, 2 Aug 2010 14:33:18 +0000 (14:33 +0000)]
A <pre> and new lines is not the best element for the Selenium output.
But at least do not use <font>

13 years agoDon't print the Privacy, about, disclaimer links in Vector.
Derk-Jan Hartman [Mon, 2 Aug 2010 13:16:12 +0000 (13:16 +0000)]
Don't print the Privacy, about, disclaimer links in Vector.

13 years agoFix alignment messed up in r70329.
Siebrand Mazeland [Mon, 2 Aug 2010 12:06:15 +0000 (12:06 +0000)]
Fix alignment messed up in r70329.

13 years ago* Update r70168 to remove patchwork messages [1]
Siebrand Mazeland [Mon, 2 Aug 2010 11:54:11 +0000 (11:54 +0000)]
* Update r70168 to remove patchwork messages [1]
* Tweak messages and add documentation for some.

[1] Please read http://www.mediawiki.org/wiki/Localisation#Avoid_patchwork_messages in why this is a bad idea.

13 years ago* Modified file description header to use "/** ... */" and added @file
Alexandre Emsenhuber [Mon, 2 Aug 2010 08:31:23 +0000 (08:31 +0000)]
* Modified file description header to use "/** ... */" and added @file
* Added a simple description to new-index.php

13 years agoRewording for consistency:
Siebrand Mazeland [Mon, 2 Aug 2010 08:15:22 +0000 (08:15 +0000)]
Rewording for consistency:
* "lock" to "protect" when meaning page protection
* page -> text in line 3469 because the text was blocked, not the page.

13 years agoMoved definitions for Special:Listadmins and Special:Listbots just below Special...
Alexandre Emsenhuber [Mon, 2 Aug 2010 08:14:15 +0000 (08:14 +0000)]
Moved definitions for Special:Listadmins and Special:Listbots just below Special:Listusers for consistency with other redirects

13 years ago* modified runTests to run suites instead of single tests. this fixes r70215
Markus Glaser [Mon, 2 Aug 2010 08:09:26 +0000 (08:09 +0000)]
* modified runTests to run suites instead of single tests. this fixes r70215

13 years ago* changed variable name of the logger since it is used globally
Markus Glaser [Mon, 2 Aug 2010 08:07:52 +0000 (08:07 +0000)]
* changed variable name of the logger since it is used globally

13 years ago* log browser used
Markus Glaser [Mon, 2 Aug 2010 08:04:16 +0000 (08:04 +0000)]
* log browser used
* improve automated login of test user
credits to priyanka dhanda

13 years ago(no commit message)
Markus Glaser [Mon, 2 Aug 2010 07:44:02 +0000 (07:44 +0000)]

13 years agoFollow up to r70313
Jeroen De Dauw [Mon, 2 Aug 2010 04:41:44 +0000 (04:41 +0000)]
Follow up to r70313

13 years agoDocumentation and style improvements
Jeroen De Dauw [Mon, 2 Aug 2010 03:44:00 +0000 (03:44 +0000)]
Documentation and style improvements

13 years agoRepair getDescriptionUrl() and getDescriptionText() Follow up to r69907 and r69908
Derk-Jan Hartman [Sun, 1 Aug 2010 22:07:52 +0000 (22:07 +0000)]
Repair getDescriptionUrl() and getDescriptionText() Follow up to r69907 and r69908

All this functionality is now moved to File.php. for getDescriptionUrl there was no
real need to subclass this method, for getDescriptionText() there was, but
duplicating the code or changing the inheritence model of LocalFile and ForeignDBFile
seems too much work if an isLocal in File.php suffices.

13 years agoLocalization update for he.
Rotem Liss [Sun, 1 Aug 2010 21:44:42 +0000 (21:44 +0000)]
Localization update for he.

13 years agoStandardisation of file headers
Alexandre Emsenhuber [Sun, 1 Aug 2010 21:13:44 +0000 (21:13 +0000)]
Standardisation of file headers

13 years agoSpecify the kind of cache that it disables: The client one, based on If-modified...
Platonides [Sun, 1 Aug 2010 20:10:31 +0000 (20:10 +0000)]
Specify the kind of cache that it disables: The client one, based on If-modified-since

13 years agoFixed some doxygen warnings
Alexandre Emsenhuber [Sun, 1 Aug 2010 19:39:57 +0000 (19:39 +0000)]
Fixed some doxygen warnings

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sun, 1 Aug 2010 19:38:36 +0000 (19:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-01 19:06:00 UTC)

13 years agoReplace echo + die with die()
Platonides [Sun, 1 Aug 2010 18:05:50 +0000 (18:05 +0000)]
Replace echo + die with die()

13 years agoDo not use directly the $options global
Platonides [Sun, 1 Aug 2010 18:03:29 +0000 (18:03 +0000)]
Do not use directly the $options global

13 years ago* (bug 24418) action=markpatrolled now requires a token
Alexandre Emsenhuber [Sun, 1 Aug 2010 15:50:30 +0000 (15:50 +0000)]
* (bug 24418) action=markpatrolled now requires a token

13 years agomwScriptLoader.php script has been removed
Alexandre Emsenhuber [Sun, 1 Aug 2010 13:13:04 +0000 (13:13 +0000)]
mwScriptLoader.php script has been removed

13 years ago* Removed trailing whitespaces
Alexandre Emsenhuber [Sun, 1 Aug 2010 12:31:50 +0000 (12:31 +0000)]
* Removed trailing whitespaces
* Moved the description comment to the very top and added "@file"

13 years agoAlso exclude StartProfiler.php
Alexandre Emsenhuber [Sun, 1 Aug 2010 12:28:09 +0000 (12:28 +0000)]
Also exclude StartProfiler.php

13 years ago* Modified Special:Blockip to subclass SpecialPage
Alexandre Emsenhuber [Sun, 1 Aug 2010 12:14:32 +0000 (12:14 +0000)]
* Modified Special:Blockip to subclass SpecialPage

13 years agoYes, I forgot to commit this file
Alexandre Emsenhuber [Sun, 1 Aug 2010 10:43:50 +0000 (10:43 +0000)]
Yes, I forgot to commit this file

13 years ago* (bug 21503) There's now a "reason" field when creating account for other users
Alexandre Emsenhuber [Sun, 1 Aug 2010 10:42:53 +0000 (10:42 +0000)]
* (bug 21503) There's now a "reason" field when creating account for other users

13 years ago* (bug 24563) Entries on Special:WhatLinksHere now have a link to their history
Alexandre Emsenhuber [Sun, 1 Aug 2010 09:20:30 +0000 (09:20 +0000)]
* (bug 24563) Entries on Special:WhatLinksHere now have a link to their history

13 years agoSpecialPage provides a getTitle() function, so use it
Alexandre Emsenhuber [Sun, 1 Aug 2010 09:09:48 +0000 (09:09 +0000)]
SpecialPage provides a getTitle() function, so use it

13 years agosvn:eol-style native
Alexandre Emsenhuber [Sun, 1 Aug 2010 08:59:55 +0000 (08:59 +0000)]
svn:eol-style native

13 years agoRevert r69907
Sam Reed [Sun, 1 Aug 2010 08:49:06 +0000 (08:49 +0000)]
Revert r69907

13 years agoFollow-up r70260 / r70256: rename ckb-arab to ckb.
Siebrand Mazeland [Sun, 1 Aug 2010 08:35:45 +0000 (08:35 +0000)]
Follow-up r70260 / r70256: rename ckb-arab to ckb.

13 years agoFollow-up r70256 / bug 24593: remove ckb-latn, preparing to move ckb-arab to ckb.
Siebrand Mazeland [Sun, 1 Aug 2010 08:33:20 +0000 (08:33 +0000)]
Follow-up r70256 / bug 24593: remove ckb-latn, preparing to move ckb-arab to ckb.

13 years ago(bug 24593) Native name for Sorani now uses only Arabic script
Max Semenik [Sun, 1 Aug 2010 06:10:10 +0000 (06:10 +0000)]
(bug 24593) Native name for Sorani now uses only Arabic script

13 years agoFollow up r70095. Remove the now unused $wgAllowCopyUploads global.
Platonides [Sat, 31 Jul 2010 23:26:16 +0000 (23:26 +0000)]
Follow up r70095. Remove the now unused $wgAllowCopyUploads global.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sat, 31 Jul 2010 21:28:50 +0000 (21:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-07-31 21:16:00 UTC)

13 years agoMove a few braces noticed while doing CR
Sam Reed [Sat, 31 Jul 2010 19:53:43 +0000 (19:53 +0000)]
Move a few braces noticed while doing CR