lhc/web/wiklou.git
13 years ago* Standardised file description headers
Alexandre Emsenhuber [Sun, 15 Aug 2010 17:27:41 +0000 (17:27 +0000)]
* Standardised file description headers
* Added some descriptions

13 years agoModified Special:Protectedpages and Special:Protectedtitles to subclass SpecialPage
Alexandre Emsenhuber [Sun, 15 Aug 2010 16:57:07 +0000 (16:57 +0000)]
Modified Special:Protectedpages and Special:Protectedtitles to subclass SpecialPage

13 years agoError message tweaks
Jeroen De Dauw [Sun, 15 Aug 2010 16:42:43 +0000 (16:42 +0000)]
Error message tweaks

13 years agoFixed SQLite updater broken by r69542
Max Semenik [Sun, 15 Aug 2010 14:49:07 +0000 (14:49 +0000)]
Fixed SQLite updater broken by r69542

13 years agoModified the environment check of the core installer to check the current MediaWiki...
Jeroen De Dauw [Sun, 15 Aug 2010 10:51:24 +0000 (10:51 +0000)]
Modified the environment check of the core installer to check the current MediaWiki version to work with the new repository classes.

13 years agoFollow up to r71107 - moved forgotten global variables
Jeroen De Dauw [Sun, 15 Aug 2010 10:02:17 +0000 (10:02 +0000)]
Follow up to r71107 - moved forgotten global variables

13 years agoFollow up to r71107 - added forgotten global function and corrected @since annotations
Jeroen De Dauw [Sun, 15 Aug 2010 09:49:22 +0000 (09:49 +0000)]
Follow up to r71107 - added forgotten global function and corrected @since annotations

13 years agoMoved in repository interaction classes from Deployment so it's possible to use them...
Jeroen De Dauw [Sun, 15 Aug 2010 09:40:16 +0000 (09:40 +0000)]
Moved in repository interaction classes from Deployment so it's possible to use them in the new installer for update detection

13 years ago* Standardised file description headers
Alexandre Emsenhuber [Sun, 15 Aug 2010 07:47:23 +0000 (07:47 +0000)]
* Standardised file description headers
* Added some descriptions
* Added @file where needed

13 years agoStandardised file description headers; second part
Alexandre Emsenhuber [Sun, 15 Aug 2010 07:16:58 +0000 (07:16 +0000)]
Standardised file description headers; second part

13 years agoFixed E_STRICT from r71059
Max Semenik [Sun, 15 Aug 2010 07:03:59 +0000 (07:03 +0000)]
Fixed E_STRICT from r71059

13 years agoAdd signupstart to Userlogin.php per request of MZMcBride
Sam Reed [Sat, 14 Aug 2010 22:38:18 +0000 (22:38 +0000)]
Add signupstart to Userlogin.php per request of MZMcBride

That, and we've got a loginstart/loginend, and then signupend, but no signupstart

13 years agoStandardised file description headers; first path
Alexandre Emsenhuber [Sat, 14 Aug 2010 19:19:41 +0000 (19:19 +0000)]
Standardised file description headers; first path

13 years agoSeems I forgot to commit this file with r71078
Alexandre Emsenhuber [Sat, 14 Aug 2010 17:52:00 +0000 (17:52 +0000)]
Seems I forgot to commit this file with r71078
*STAB*

13 years ago* Standardised file description headers
Alexandre Emsenhuber [Sat, 14 Aug 2010 17:42:40 +0000 (17:42 +0000)]
* Standardised file description headers
* Added some descriptions
* Added @file where needed

13 years agoAdded function to get extension type messages
Jeroen De Dauw [Sat, 14 Aug 2010 14:04:15 +0000 (14:04 +0000)]
Added function to get extension type messages

13 years agocoding style tweaks
Jack Phoenix [Sat, 14 Aug 2010 13:31:10 +0000 (13:31 +0000)]
coding style tweaks

13 years agoMake NATURAL JOINs possible
Jeroen De Dauw [Sat, 14 Aug 2010 11:24:07 +0000 (11:24 +0000)]
Make NATURAL JOINs possible

13 years agoRemove User::getToggles() code, dormant since preferences rewrite over a year ago
Andrew Garrett [Sat, 14 Aug 2010 08:46:36 +0000 (08:46 +0000)]
Remove User::getToggles() code, dormant since preferences rewrite over a year ago

13 years agofix to handle case of mIndexField including a table prefix
Ryan Kaldari [Sat, 14 Aug 2010 01:57:05 +0000 (01:57 +0000)]
fix to handle case of mIndexField including a table prefix

13 years agoMy first commit in weeks and it's got a typo ;)
Brion Vibber [Fri, 13 Aug 2010 23:39:27 +0000 (23:39 +0000)]
My first commit in weeks and it's got a typo ;)

13 years agoMore explanatory (and English ;) doc comments for Esperanto surrogate conversion...
Brion Vibber [Fri, 13 Aug 2010 23:37:45 +0000 (23:37 +0000)]
More explanatory (and English ;) doc comments for Esperanto surrogate conversion in LanguageEo::iconv()

13 years agoRemove unused $voicedPhonemes
Sam Reed [Fri, 13 Aug 2010 23:30:53 +0000 (23:30 +0000)]
Remove unused $voicedPhonemes

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Siebrand Mazeland [Fri, 13 Aug 2010 23:21:38 +0000 (23:21 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-13 21:35 UTC)

13 years agoFix extensions to work with category sort changes
Aryeh Gregor [Fri, 13 Aug 2010 22:07:48 +0000 (22:07 +0000)]
Fix extensions to work with category sort changes

Three different extensions were copy-pasting all of
CategoryPage::closeShowCategory() just to change which CategoryViewer
descendant was used.  I changed the base class to use a member variable
for the CategoryViewer class, so this reduces code duplication too.  I
only tested this on CategoryTree; MetavidWiki is certainly still broken,
from the looks of it (assumes $this->from is a string), but
PeopleCategories might be okay.  Hard to avoid breaking extensions with
this sort of schema/index change.

13 years agoRevert r70960 "AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST"
Aryeh Gregor [Fri, 13 Aug 2010 21:39:51 +0000 (21:39 +0000)]
Revert r70960 "AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST"

Broke CategoryTree, see code review for the error message.

13 years agoRemove some unused variables
Sam Reed [Fri, 13 Aug 2010 20:58:16 +0000 (20:58 +0000)]
Remove some unused variables

Move variable in languages/classes/LanguageKu.php into commented code (used in comment)

13 years agoIt's params, not param
Sam Reed [Fri, 13 Aug 2010 19:44:47 +0000 (19:44 +0000)]
It's params, not param

13 years agoDo the sequence renaming the right way.
Greg Sabino Mullane [Fri, 13 Aug 2010 19:23:31 +0000 (19:23 +0000)]
Do the sequence renaming the right way.

13 years agoTry #2 for fixing r70970 (now with less unrelated changes). Just set $wgUser to a...
Chad Horohoe [Fri, 13 Aug 2010 15:10:23 +0000 (15:10 +0000)]
Try #2 for fixing r70970 (now with less unrelated changes). Just set $wgUser to a new User object here

13 years agoPartial revert r71029, unrelated changes. Need caffeine before I commit
Chad Horohoe [Fri, 13 Aug 2010 14:38:50 +0000 (14:38 +0000)]
Partial revert r71029, unrelated changes. Need caffeine before I commit

13 years agoFix #1 for r70970: Make UploadFromUrlTestSuite initialize a User instead of StubUser
Chad Horohoe [Fri, 13 Aug 2010 14:36:59 +0000 (14:36 +0000)]
Fix #1 for r70970: Make UploadFromUrlTestSuite initialize a User instead of StubUser

13 years agoRemove some more unused variables
Sam Reed [Fri, 13 Aug 2010 11:43:01 +0000 (11:43 +0000)]
Remove some more unused variables

13 years agoFix archiveName to archiveNames (wrong declaration)
Sam Reed [Fri, 13 Aug 2010 11:29:13 +0000 (11:29 +0000)]
Fix archiveName to archiveNames (wrong declaration)

Fix unused variable

Return params instead of saving in ApiTest

13 years agoSwitch /e preg_replace for callbacks
Sam Reed [Fri, 13 Aug 2010 09:46:08 +0000 (09:46 +0000)]
Switch /e preg_replace for callbacks

Swap "and" for &&

13 years agoApparently hasn't worked since 1.7... sooooo...
Sam Reed [Fri, 13 Aug 2010 08:29:44 +0000 (08:29 +0000)]
Apparently hasn't worked since 1.7... sooooo...

13 years agoRemove a few more unused variables
Sam Reed [Fri, 13 Aug 2010 08:09:52 +0000 (08:09 +0000)]
Remove a few more unused variables

13 years agoReverting r71010
Sam Reed [Fri, 13 Aug 2010 08:07:20 +0000 (08:07 +0000)]
Reverting r71010

Does this file even work/is it still used?

13 years agoRemove unused global. Add braces
Sam Reed [Fri, 13 Aug 2010 08:00:15 +0000 (08:00 +0000)]
Remove unused global. Add braces

13 years agoAllow running this standalone as
Platonides [Thu, 12 Aug 2010 20:36:00 +0000 (20:36 +0000)]
Allow running this standalone as
 ./phpunit test MediaWikiParserTest.php

13 years agoUse a class member instead of a global for keeping slaveIndexes.
Platonides [Thu, 12 Aug 2010 20:27:54 +0000 (20:27 +0000)]
Use a class member instead of a global for keeping slaveIndexes.

13 years agoAllow HTML5 custom data attributes
Aryeh Gregor [Thu, 12 Aug 2010 19:19:13 +0000 (19:19 +0000)]
Allow HTML5 custom data attributes

HTML5 allows any attribute beginning with "data-" to be used for
site-specific purposes:

http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data

I don't see any reason not to allow this.  It means users won't have to
hackily overload title="" or class="" if they want to store per-element
data for scripts.

13 years agoConvert $wgBlobCache into a static class member.
Platonides [Thu, 12 Aug 2010 18:43:06 +0000 (18:43 +0000)]
Convert $wgBlobCache into a static class member.
static members don't influence serialization.

13 years agoMake $wgExternalBlobCache a local static variable.
Platonides [Thu, 12 Aug 2010 18:25:04 +0000 (18:25 +0000)]
Make $wgExternalBlobCache a local static variable.
Remove $wgExternalLoadBalancers, unused since r32578 (birth of LBFactory)

13 years agoUpdate csshover.htc from V3.00.081222 to V3.11 from http://www.xs4all.nl/~peterned...
Platonides [Thu, 12 Aug 2010 17:56:42 +0000 (17:56 +0000)]
Update csshover.htc from V3.00.081222 to V3.11 from xs4all.nl/~peterned/htc/csshover3-source.htc
as requested on bug 23612 (en.wikipedia with Vector is reported to be slow)

http://www.xs4all.nl/~peterned/ says Whatever:hover 3.11
"fixes a huge performance issue with the css expressions. Before 3.10
they were not cleared properly, so if you're using an older version,
you're advised to *update!* "

13 years agoGet rid of StubUser. Constructing a user object isn't quite as intensive as it once...
Chad Horohoe [Thu, 12 Aug 2010 17:10:00 +0000 (17:10 +0000)]
Get rid of StubUser. Constructing a user object isn't quite as intensive as it once was. It actually takes more time using the StubUser (construction + unstub on first call) than just initializing User::newFromSession() from the start. Either way, the real overhead starts when you start calling methods (for the nitpicky, the optimization was only about 20µs. The real gain here was eliminating a StubObject)

13 years agoDatabaseSqlite::sourceStream(): convert CHAR types, allow more spaces
Max Semenik [Thu, 12 Aug 2010 16:28:11 +0000 (16:28 +0000)]
DatabaseSqlite::sourceStream(): convert CHAR types, allow more spaces

13 years agomaintenance/sqlite.php: added the ability to check .sql files for SQLite compatibility
Max Semenik [Thu, 12 Aug 2010 16:06:47 +0000 (16:06 +0000)]
maintenance/sqlite.php: added the ability to check .sql files for SQLite compatibility

13 years agoFollow up r69543, r70608
Platonides [Thu, 12 Aug 2010 14:50:09 +0000 (14:50 +0000)]
Follow up r69543, r70608
Remove unused $wgSuperUser and superflous non-global $wgDBsuperuser.

13 years agoAdded missing $ to variable.
Platonides [Thu, 12 Aug 2010 14:46:32 +0000 (14:46 +0000)]
Added missing $ to variable.
Removing (unused) global $wgDBts2schema about Postgres tsearch2

13 years agoFollow up r70520. Use canonical class name.
Platonides [Thu, 12 Aug 2010 14:37:39 +0000 (14:37 +0000)]
Follow up r70520. Use canonical class name.

13 years agoAjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST
Chad Horohoe [Thu, 12 Aug 2010 14:34:54 +0000 (14:34 +0000)]
AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST

13 years agoHacky r70418 makes this global unused.
Platonides [Thu, 12 Aug 2010 14:34:39 +0000 (14:34 +0000)]
Hacky r70418 makes this global unused.

13 years agoRefactor to avoid defining globals inside switches.
Platonides [Thu, 12 Aug 2010 14:25:07 +0000 (14:25 +0000)]
Refactor to avoid defining globals inside switches.

13 years agoFollow up r70916. Missing global.
Platonides [Thu, 12 Aug 2010 14:02:32 +0000 (14:02 +0000)]
Follow up r70916. Missing global.

13 years agoNo need for $wgUser since r70653
Platonides [Thu, 12 Aug 2010 14:00:10 +0000 (14:00 +0000)]
No need for $wgUser since r70653

13 years agoParser should only use content messages.
Platonides [Thu, 12 Aug 2010 13:23:28 +0000 (13:23 +0000)]
Parser should only use content messages.

13 years agoI don't think anyone's called it MediaZilla in a very long time
Chad Horohoe [Thu, 12 Aug 2010 13:06:45 +0000 (13:06 +0000)]
I don't think anyone's called it MediaZilla in a very long time

13 years agoTypofix. Now you can actually enable uploads
Chad Horohoe [Thu, 12 Aug 2010 13:00:31 +0000 (13:00 +0000)]
Typofix. Now you can actually enable uploads

13 years ago(bug 24766) Installer is installing all extensions, not just the ones you picked
Chad Horohoe [Thu, 12 Aug 2010 12:58:27 +0000 (12:58 +0000)]
(bug 24766) Installer is installing all extensions, not just the ones you picked

13 years agoFollowup r70783. Give doEditSectionLink an extra parameter with the language to use...
Platonides [Thu, 12 Aug 2010 12:30:47 +0000 (12:30 +0000)]
Followup r70783. Give doEditSectionLink an extra parameter with the language to use for the editsection.

13 years agosize and sha1 cannot be null in the database layout.
Platonides [Thu, 12 Aug 2010 12:00:58 +0000 (12:00 +0000)]
size and sha1 cannot be null in the database layout.
Fixes sqlite parsertests after r70917

13 years agoAdd missing tables to listTables()
Platonides [Thu, 12 Aug 2010 10:34:20 +0000 (10:34 +0000)]
Add missing tables to listTables()
Strangely this didn't break mysql like it did for sqlite.

13 years agoFollow up r63404. If we are in safe mode, we do not want hashed uploads.
Platonides [Thu, 12 Aug 2010 09:55:05 +0000 (09:55 +0000)]
Follow up r63404. If we are in safe mode, we do not want hashed uploads.

13 years agoDocumentation o_O
Jeroen De Dauw [Thu, 12 Aug 2010 07:27:48 +0000 (07:27 +0000)]
Documentation o_O

13 years agoI didn't intend to change this in r70917
Platonides [Wed, 11 Aug 2010 21:32:25 +0000 (21:32 +0000)]
I didn't intend to change this in r70917

13 years agoForce $wgContLang to English at the entry point.
Platonides [Wed, 11 Aug 2010 21:23:43 +0000 (21:23 +0000)]
Force $wgContLang to English at the entry point.
This avoids early Titles being localized.
Remove setupGlobals() from addArticle()
Make the upload dir global.
Make the fake uploads a bit saner.

13 years agoMade tests more independent. Some items were only working before previous ones left...
Platonides [Wed, 11 Aug 2010 21:22:40 +0000 (21:22 +0000)]
Made tests more independent. Some items were only working before previous ones left in the appropiate state, or because the installation language was English.

13 years agoLocalization update for he.
Rotem Liss [Wed, 11 Aug 2010 20:28:00 +0000 (20:28 +0000)]
Localization update for he.

13 years agoAs per feedback on r70849, fixed bad indenting (spaces) that should be a tab.
Sean Colombo [Wed, 11 Aug 2010 19:02:21 +0000 (19:02 +0000)]
As per feedback on r70849, fixed bad indenting (spaces) that should be a tab.

13 years agoFollow up r24808.
Platonides [Wed, 11 Aug 2010 18:56:38 +0000 (18:56 +0000)]
Follow up r24808.
mime is not in getCacheFields(), so $this->mime was never populated at this point (regardless of $info['mime']) and splitMime() always returned unknown.

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

13 years agogetSkin() should get a Title as parameter.
Platonides [Wed, 11 Aug 2010 17:11:24 +0000 (17:11 +0000)]
getSkin() should get a Title as parameter.

13 years agoMove things along the DROP TABLE.
Platonides [Wed, 11 Aug 2010 16:50:31 +0000 (16:50 +0000)]
Move things along the DROP TABLE.

13 years agoNew line at end of wfDebug
Platonides [Wed, 11 Aug 2010 16:49:59 +0000 (16:49 +0000)]
New line at end of wfDebug

13 years agoFollowup r70875, fix default value for decode()
Chad Horohoe [Wed, 11 Aug 2010 13:03:45 +0000 (13:03 +0000)]
Followup r70875, fix default value for decode()

13 years agoRevert r70874: <RoanKattouw> Dude that just looks kinda ugly
Chad Horohoe [Wed, 11 Aug 2010 12:45:59 +0000 (12:45 +0000)]
Revert r70874: <RoanKattouw> Dude that just looks kinda ugly

13 years agoBoolean parameters suck, but we can make them suck less by adding constants you can...
Chad Horohoe [Wed, 11 Aug 2010 12:42:40 +0000 (12:42 +0000)]
Boolean parameters suck, but we can make them suck less by adding constants you can use. Also doc, spacing, etc

13 years agoUse WebRequest here too
Chad Horohoe [Wed, 11 Aug 2010 12:21:49 +0000 (12:21 +0000)]
Use WebRequest here too

13 years agoRemove raw $_GET usage held over from days before WebRequest existed, was introduced...
Chad Horohoe [Wed, 11 Aug 2010 12:15:16 +0000 (12:15 +0000)]
Remove raw $_GET usage held over from days before WebRequest existed, was introduced in r12605

13 years agoFollowup to r70729: Add note about $wgPageProps only being seen from the API help...
X! [Wed, 11 Aug 2010 08:15:32 +0000 (08:15 +0000)]
Followup to r70729: Add note about $wgPageProps only being seen from the API help page

13 years agoUpdate release notes for previous commit.
Sean Colombo [Wed, 11 Aug 2010 07:24:15 +0000 (07:24 +0000)]
Update release notes for previous commit.

13 years agoFix to #17031. See bug ticket for test code & test-results.
Sean Colombo [Wed, 11 Aug 2010 07:19:26 +0000 (07:19 +0000)]
Fix to #17031. See bug ticket for test code & test-results.

13 years agoReplace some instances of $wgUser passed to ParserOutput::get()/getKey() for $wgOut...
Sam Reed [Tue, 10 Aug 2010 19:57:53 +0000 (19:57 +0000)]
Replace some instances of $wgUser passed to ParserOutput::get()/getKey() for $wgOut->parserOptions()

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 10 Aug 2010 19:34:11 +0000 (19:34 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-10 19:19:00 UTC)

13 years agoUpgrade the warning from wfDebug to wfWarn.
Platonides [Tue, 10 Aug 2010 19:32:49 +0000 (19:32 +0000)]
Upgrade the warning from wfDebug to wfWarn.

13 years agoRewrite trackback.php so it looks like it was written sometime in the last 5 years...
Chad Horohoe [Tue, 10 Aug 2010 18:50:34 +0000 (18:50 +0000)]
Rewrite trackback.php so it looks like it was written sometime in the last 5 years. Use cool things like WebRequest too!

13 years agoMake the subtitle of Special:Watchlist more consistent with other subtitles.
Raimond Spekking [Tue, 10 Aug 2010 16:21:10 +0000 (16:21 +0000)]
Make the subtitle of Special:Watchlist more consistent with other subtitles.
Enclose tool links by s span with a class.
Especially I see no need for the extra linebreak

13 years agoAdd an extra option for extensions adding an extra key directly instead of the hook...
Platonides [Tue, 10 Aug 2010 14:38:14 +0000 (14:38 +0000)]
Add an extra option for extensions adding an extra key directly instead of the hook or $wgRenderHashAppend, so that they can be added only to some instances.

13 years agoFollow up r70783. Define variable used in debug message.
Platonides [Tue, 10 Aug 2010 14:11:51 +0000 (14:11 +0000)]
Follow up r70783. Define variable used in debug message.

Provide the fallback prototype again, seems still used by extensions.

13 years agoCleanup r70571, more strict checks for getCookie() return values
Chad Horohoe [Tue, 10 Aug 2010 13:30:46 +0000 (13:30 +0000)]
Cleanup r70571, more strict checks for getCookie() return values

13 years agoFix fixme placed on r30022 by me (fixing per comment)
Sam Reed [Tue, 10 Aug 2010 12:55:22 +0000 (12:55 +0000)]
Fix fixme placed on r30022 by me (fixing per comment)

Adding a few braces too

13 years agoFollow up r70783 CR.
Platonides [Tue, 10 Aug 2010 12:10:49 +0000 (12:10 +0000)]
Follow up r70783 CR.
Document getETag()

13 years agoPrefix searches for users, not pages
Sam Reed [Tue, 10 Aug 2010 10:05:31 +0000 (10:05 +0000)]
Prefix searches for users, not pages

13 years agoAdd ID to minor/watch labels to allow separate styling of these lebels.
Raimond Spekking [Tue, 10 Aug 2010 08:51:11 +0000 (08:51 +0000)]
Add ID to minor/watch labels to allow separate styling of these lebels.

13 years agoAdded some docs
Jeroen De Dauw [Tue, 10 Aug 2010 06:17:49 +0000 (06:17 +0000)]
Added some docs

13 years agoUse only the page relevant pieces in the parser cache key. Eg. two users with differe...
Platonides [Mon, 9 Aug 2010 21:53:21 +0000 (21:53 +0000)]
Use only the page relevant pieces in the parser cache key. Eg. two users with different math options will now
use the same parsercache entry for articles without <math> tags.
The cache key format is kept as a fallback so the old cached entries can be reused.

Should boost parsercache hits, but it also makes easier to pollute the parsercache by tag hooks that behave
badly, directly using $wgUser or $wgLang.

Extensions hooking PageRenderingHash now see !edit=0 and the !printable=1 bits.

Fixes bug 24714 - Usage of {{#dateformat: }} in wikis without $wgUseDynamicDates can lead to unexpected results

Builds upon r70498, r70498, r70501, r70517, r70651, r70653, r70765, r70780.

13 years agoFix r70770: Will I ever get this working? :)
X! [Mon, 9 Aug 2010 21:03:13 +0000 (21:03 +0000)]
Fix r70770: Will I ever get this working? :)

13 years agoChange require_once to actual path
Sam Reed [Mon, 9 Aug 2010 20:40:38 +0000 (20:40 +0000)]
Change require_once to actual path

Remove unused array

13 years agoFollow up r70653. Missing line.
Platonides [Mon, 9 Aug 2010 20:39:48 +0000 (20:39 +0000)]
Follow up r70653. Missing line.