lhc/web/wiklou.git
13 years agoFollowup to r70638: Clean up code, add prop to function args, add comment
X! [Sun, 8 Aug 2010 14:55:08 +0000 (14:55 +0000)]
Followup to r70638: Clean up code, add prop to function args, add comment

13 years agoSeems I forgot to commit these files in r70699
Alexandre Emsenhuber [Sun, 8 Aug 2010 14:28:01 +0000 (14:28 +0000)]
Seems I forgot to commit these files in r70699

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

13 years ago* Removed unused globals: $wgEnableSerializedMessages, $wgCheckSerialized,
Niklas Laxström [Sun, 8 Aug 2010 14:04:56 +0000 (14:04 +0000)]
* Removed unused globals: $wgEnableSerializedMessages, $wgCheckSerialized,
  $wgUseMemCached, $wgDisableSearchContext, $wgColorErrors,
  $wgUseZhdaemon, $wgZhdaemonHost and $wgZhdaemonPort.

Followup: r70691, r70694, r70695, r70696, r70697.

13 years agoRemoved $wgUseZhdaemon, $wgZhdaemonHost and $wgZhdaemonPort. Apparently unused since...
Niklas Laxström [Sun, 8 Aug 2010 14:01:15 +0000 (14:01 +0000)]
Removed $wgUseZhdaemon, $wgZhdaemonHost and $wgZhdaemonPort. Apparently unused since r6878 at 2004-12-29.

13 years agoRemove $wgColorErrors. Apparently unused at least since r17991 at 2006-11-29
Niklas Laxström [Sun, 8 Aug 2010 13:52:39 +0000 (13:52 +0000)]
Remove $wgColorErrors. Apparently unused at least since r17991 at 2006-11-29

13 years agoRemove $wgDisableSearchContext, unused for a long time. Can't find exact revision.
Niklas Laxström [Sun, 8 Aug 2010 13:49:19 +0000 (13:49 +0000)]
Remove $wgDisableSearchContext, unused for a long time. Can't find exact revision.

13 years agoRemoved deprecated $wgUseMemCached from DefaultSettings, not used anywhere
Max Semenik [Sun, 8 Aug 2010 13:22:22 +0000 (13:22 +0000)]
Removed deprecated $wgUseMemCached from DefaultSettings, not used anywhere

13 years agoKill NamespaceCompat. Nothing, anywhere (not even comments, since r70692) still refer...
Chad Horohoe [Sun, 8 Aug 2010 13:16:10 +0000 (13:16 +0000)]
Kill NamespaceCompat. Nothing, anywhere (not even comments, since r70692) still references the old class. To do so means to not support 5.3+

13 years agoRemoved $wgEnableSerializedMessages and $wgCheckSerialized again.
Niklas Laxström [Sun, 8 Aug 2010 13:06:16 +0000 (13:06 +0000)]
Removed $wgEnableSerializedMessages and $wgCheckSerialized again.

Were removed by tim on r52503, came back with r53282 which is marked as reverted but apparently is not.

13 years agoBig commit: kill almost every freeResult() call as useless
Chad Horohoe [Sun, 8 Aug 2010 12:27:48 +0000 (12:27 +0000)]
Big commit: kill almost every freeResult() call as useless

13 years agoFix for r70684: correct description
Alexandre Emsenhuber [Sun, 8 Aug 2010 12:09:18 +0000 (12:09 +0000)]
Fix for r70684: correct description

13 years ago* standardised file headers
Alexandre Emsenhuber [Sun, 8 Aug 2010 11:55:47 +0000 (11:55 +0000)]
* standardised file headers
* added a basic description
* added @file

13 years ago* standardised file headers
Alexandre Emsenhuber [Sun, 8 Aug 2010 10:44:59 +0000 (10:44 +0000)]
* standardised file headers
* added a basic description
* added @file

13 years ago* fixed doxygen warnings
Alexandre Emsenhuber [Sun, 8 Aug 2010 09:55:56 +0000 (09:55 +0000)]
* fixed doxygen warnings
* @addtogroup -> @ingroup
* removed incorrect copyright notice
* added a file description sentence

13 years agoFixed mistake in docs
Jeroen De Dauw [Sun, 8 Aug 2010 07:06:09 +0000 (07:06 +0000)]
Fixed mistake in docs

13 years agoMark the comment as documentation
Niklas Laxström [Sun, 8 Aug 2010 06:36:44 +0000 (06:36 +0000)]
Mark the comment as documentation

13 years agoFollowup r70515, commiting forgotten file
Niklas Laxström [Sun, 8 Aug 2010 06:36:00 +0000 (06:36 +0000)]
Followup r70515, commiting forgotten file

13 years ago(bug 15470) First letters of filenames are always capitalized by upload JS
Max Semenik [Sun, 8 Aug 2010 06:35:41 +0000 (06:35 +0000)]
(bug 15470) First letters of filenames are always capitalized by upload JS

13 years agoFixed minor logic error that caused layout issues
Jeroen De Dauw [Sun, 8 Aug 2010 05:21:14 +0000 (05:21 +0000)]
Fixed minor logic error that caused layout issues

13 years ago(bug 24330) Add &redirect parameter to ?action=edit
X! [Sun, 8 Aug 2010 01:14:48 +0000 (01:14 +0000)]
(bug 24330) Add &redirect parameter to ?action=edit

13 years agoAllow negative caching in process cache and use it, return early in replace() if...
Niklas Laxström [Sun, 8 Aug 2010 00:28:17 +0000 (00:28 +0000)]
Allow negative caching in process cache and use it, return early in replace() if cannot use db

13 years agoUse for loops for iterating query results
Niklas Laxström [Sat, 7 Aug 2010 23:43:28 +0000 (23:43 +0000)]
Use for loops for iterating query results

13 years agoSpelling fixes in documentation
Niklas Laxström [Sat, 7 Aug 2010 23:41:03 +0000 (23:41 +0000)]
Spelling fixes in documentation

13 years agoMake thumbsize option go through ParserOptions.
Platonides [Sat, 7 Aug 2010 22:35:23 +0000 (22:35 +0000)]
Make thumbsize option go through ParserOptions.
Yet another parameter for makeImageLink2...

13 years agoSome minor changes I had in my working copy.
Platonides [Sat, 7 Aug 2010 22:17:00 +0000 (22:17 +0000)]
Some minor changes I had in my working copy.

13 years agoRevert r70533 and the piece of r70501 that it tried to fix. Note and open bug for...
Platonides [Sat, 7 Aug 2010 21:21:28 +0000 (21:21 +0000)]
Revert r70533 and the piece of r70501 that it tried to fix. Note and open bug for the issue.
This has been present since introduction of {{#formatdate: }} in r48249 (bug 4582)

13 years agoTweak "config-install-interwiki-exists". Spotted by Hamilton Abreu.
Siebrand Mazeland [Sat, 7 Aug 2010 21:12:36 +0000 (21:12 +0000)]
Tweak "config-install-interwiki-exists". Spotted by Hamilton Abreu.

13 years agoThis documents the file, not the constant below :)
Alexandre Emsenhuber [Sat, 7 Aug 2010 20:53:41 +0000 (20:53 +0000)]
This documents the file, not the constant below :)

13 years ago* changed @addtogroup to @ingroup
Alexandre Emsenhuber [Sat, 7 Aug 2010 20:28:58 +0000 (20:28 +0000)]
* changed @addtogroup to @ingroup
* added @file

13 years agoStandardised file description headers, added @file
Alexandre Emsenhuber [Sat, 7 Aug 2010 19:59:42 +0000 (19:59 +0000)]
Standardised file description headers, added @file

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sat, 7 Aug 2010 19:16:16 +0000 (19:16 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-07 18:45:00 UTC)

13 years agoFix for r68897: correct use of wfAppendQuery()
Alexandre Emsenhuber [Sat, 7 Aug 2010 19:10:28 +0000 (19:10 +0000)]
Fix for r68897: correct use of wfAppendQuery()

13 years agoPer comments, follow-up to r70278: make patrol tokens compatibles between api and...
Alexandre Emsenhuber [Sat, 7 Aug 2010 18:56:52 +0000 (18:56 +0000)]
Per comments, follow-up to r70278: make patrol tokens compatibles between api and normal interface

13 years ago-(bug 24484) Add prop=pageprops module
X! [Sat, 7 Aug 2010 18:50:23 +0000 (18:50 +0000)]
-(bug 24484) Add prop=pageprops module
-Add $wgPageProps global variable

13 years agoAdded a note to set $wgShowExceptionDetails = true; in LocalSettings.php to get detai...
Alexandre Emsenhuber [Sat, 7 Aug 2010 18:32:39 +0000 (18:32 +0000)]
Added a note to set $wgShowExceptionDetails = true; in LocalSettings.php to get details when encoutring an second exception in the exception handler

13 years agoRemove redundant text post r70628
Sam Reed [Sat, 7 Aug 2010 17:41:51 +0000 (17:41 +0000)]
Remove redundant text post r70628

13 years agoFollowup to r70584: Use fourth parameter of ApiQueryBase::addWhereRange instead of...
X! [Sat, 7 Aug 2010 16:51:25 +0000 (16:51 +0000)]
Followup to r70584: Use fourth parameter of ApiQueryBase::addWhereRange instead of a second call

13 years agoFollowup r70587: Remove unnecessary references
X! [Sat, 7 Aug 2010 16:46:57 +0000 (16:46 +0000)]
Followup r70587: Remove unnecessary references

13 years agoHack up UserRightsProxy to support setting preferences of remote users, needed for...
Roan Kattouw [Sat, 7 Aug 2010 16:08:22 +0000 (16:08 +0000)]
Hack up UserRightsProxy to support setting preferences of remote users, needed for a feature in PrefSwitch I'm about to commit. The way this hacks around UserRightsProxy's 'helpful' behavior of refusing to work with wikis not in $wgLoclDatabases is kinda ugly (I'm open to alternative suggestions), but then this entire class is an ugly hack and should be replaced by something more sane (even brion, its author, agrees with this :P)

13 years agoRemoved @package and added @file from the documentation for consistency with other...
Alexandre Emsenhuber [Sat, 7 Aug 2010 14:58:18 +0000 (14:58 +0000)]
Removed @package and added @file from the documentation for consistency with other files

13 years agoPut copyright notice in the standard place (and added @file)
Alexandre Emsenhuber [Sat, 7 Aug 2010 14:35:18 +0000 (14:35 +0000)]
Put copyright notice in the standard place (and added @file)

13 years agoUpdate outdated API documentation... (is this file even used any more?)
Sam Reed [Sat, 7 Aug 2010 13:57:15 +0000 (13:57 +0000)]
Update outdated API documentation... (is this file even used any more?)

13 years agoRevert changes to SpecialSearch.php in r70608 because Special:Search didn't load...
Siebrand Mazeland [Sat, 7 Aug 2010 12:45:10 +0000 (12:45 +0000)]
Revert changes to SpecialSearch.php in r70608 because Special:Search didn't load anymore.

PHP Notice:  Undefined property: SpecialSearch::$searchEngine in /www/w/includes/specials/SpecialSearch.php on line 796

catrope on IRC:
It asks the backend ($this->searchEngine) if it supports redirects but $this->searchEngine is only set in the code that generates results
So viewing Special:Search with no results listing has that var unset

13 years agoGood bye, SearchMysql4!
Max Semenik [Sat, 7 Aug 2010 07:51:52 +0000 (07:51 +0000)]
Good bye, SearchMysql4!

13 years agoNot implemented != deprecated
Max Semenik [Sat, 7 Aug 2010 07:38:05 +0000 (07:38 +0000)]
Not implemented != deprecated

13 years agoTypo in message, spotted by Hamilton Abreu on TWN
Max Semenik [Sat, 7 Aug 2010 07:31:21 +0000 (07:31 +0000)]
Typo in message, spotted by Hamilton Abreu on TWN

13 years agoUpdating main-ltr.css for Vector skin to ensure the RTL stylesheet mirros all items...
Huji [Sat, 7 Aug 2010 05:20:45 +0000 (05:20 +0000)]
Updating main-ltr.css for Vector skin to ensure the RTL stylesheet mirros all items from the LTR layout correctly. (See comments on mediawiki.org/wiki/Special:Code/MediaWiki/70549)

13 years agoFollow-up r70608: you don't need to override this stuff with empty functions, they...
Max Semenik [Sat, 7 Aug 2010 05:10:02 +0000 (05:10 +0000)]
Follow-up r70608: you don't need to override this stuff with empty functions, they're empty in the base class already

13 years agoDatabaseMssql class and related changes
Ryan Bies [Fri, 6 Aug 2010 23:44:00 +0000 (23:44 +0000)]
DatabaseMssql class and related changes

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Fri, 6 Aug 2010 22:24:01 +0000 (22:24 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-06 22:06:00 UTC)

13 years agoFix for r70571, still have to use $_COOKIE here too, $wgContLang is undefined so far
Chad Horohoe [Fri, 6 Aug 2010 21:10:18 +0000 (21:10 +0000)]
Fix for r70571, still have to use $_COOKIE here too, $wgContLang is undefined so far

13 years agoTypo.
Rotem Liss [Fri, 6 Aug 2010 21:04:36 +0000 (21:04 +0000)]
Typo.

13 years agoLocalization update for he.
Rotem Liss [Fri, 6 Aug 2010 21:04:19 +0000 (21:04 +0000)]
Localization update for he.

13 years agoRefactor Makefile.py. Add new function to manualWordsTable() and fix bug for parsing...
Philip Tzou [Fri, 6 Aug 2010 20:05:07 +0000 (20:05 +0000)]
Refactor Makefile.py. Add new function to manualWordsTable() and fix bug for parsing tsi.src.

13 years ago* (bug 24236) Add add, remove, add-self, remove-self tags to meta=siteinfo&siprop...
X! [Fri, 6 Aug 2010 19:25:34 +0000 (19:25 +0000)]
* (bug 24236) Add add, remove, add-self, remove-self tags to meta=siteinfo&siprop=usergroups

13 years ago(bug 24700) Update dialog shown when clicking on the special page tab after saving...
Huji [Fri, 6 Aug 2010 19:07:56 +0000 (19:07 +0000)]
(bug 24700) Update dialog shown when clicking on the special page tab after saving preferences

13 years ago* (bug 24677) axto= parameters added to allcategories, allimages, alllinks, allmessag...
X! [Fri, 6 Aug 2010 18:58:10 +0000 (18:58 +0000)]
* (bug 24677) axto= parameters added to allcategories, allimages, alllinks, allmessages,  allpages, and allusers

13 years agowfForeignMemcKey() just exists, we don't have to keep around crazy back compat for...
Roan Kattouw [Fri, 6 Aug 2010 16:02:42 +0000 (16:02 +0000)]
wfForeignMemcKey() just exists, we don't have to keep around crazy back compat for that

13 years agoCleanup getCookie() and use it all over the place instead of using $_COOKIE directly
Chad Horohoe [Fri, 6 Aug 2010 15:00:43 +0000 (15:00 +0000)]
Cleanup getCookie() and use it all over the place instead of using $_COOKIE directly

13 years agoChange statsOutput to parent, wikiStatsOutput is a subclass of statsOutput
Sam Reed [Fri, 6 Aug 2010 14:12:41 +0000 (14:12 +0000)]
Change statsOutput to parent, wikiStatsOutput is a subclass of statsOutput

13 years agoRELEASE-NOTES for r70557
Sam Reed [Fri, 6 Aug 2010 13:28:34 +0000 (13:28 +0000)]
RELEASE-NOTES for r70557

13 years ago(bug 22514) SpecialRecentChangesQuery should also work on Special:RecentChangesLinked...
Chad Horohoe [Fri, 6 Aug 2010 13:07:46 +0000 (13:07 +0000)]
(bug 22514) SpecialRecentChangesQuery should also work on Special:RecentChangesLinked. Commented since inception, no reason not to call it here as well. Need this for FlaggedRevs stuff later anyway ;-)

13 years agoRemove dupe implementations of begin/commit from Postgres. Also included checks for...
Chad Horohoe [Fri, 6 Aug 2010 12:54:39 +0000 (12:54 +0000)]
Remove dupe implementations of begin/commit from Postgres. Also included checks for $mTrxLevel on commit/rollback, based on patch on bug 24629

13 years ago(bug 24665) When starttimestamp is not specified, fake it by setting it to NOW, not...
Roan Kattouw [Fri, 6 Aug 2010 12:15:23 +0000 (12:15 +0000)]
(bug 24665) When starttimestamp is not specified, fake it by setting it to NOW, not to the timestamp of the last edit. This caused 'pagedeleted' errors for pages that were deleted then partially undeleted that could only be gotten rid of by setting starttimestamp, while the docs claim not setting starttimestamp causes all such errors to be silenced

13 years ago(bug 24687) Remove spurious require() calls. Everything in StubObject is a class...
Chad Horohoe [Fri, 6 Aug 2010 12:12:29 +0000 (12:12 +0000)]
(bug 24687) Remove spurious require() calls. Everything in StubObject is a class and in the autoloader

13 years agoReduce unnecessary seperate nested if's, move them up to the top if (as per most...
Sam Reed [Fri, 6 Aug 2010 11:20:39 +0000 (11:20 +0000)]
Reduce unnecessary seperate nested if's, move them up to the top if (as per most of the others where this is necessary!)

13 years agoFollowup r70460 per Umherirrender comment
Sam Reed [Fri, 6 Aug 2010 11:18:39 +0000 (11:18 +0000)]
Followup r70460 per Umherirrender comment

Add "required" to ApiParamInfo

13 years agoUpdating main-rtl.css for Vector skin to ensure all left-aligned (or left-directioned...
Huji [Fri, 6 Aug 2010 10:57:59 +0000 (10:57 +0000)]
Updating main-rtl.css for Vector skin to ensure all left-aligned (or left-directioned) elements of the page are mirrored to right correctly.

13 years agoUpdating main-rtl.css for Vector skin to ensure all left-aligned (or left-directioned...
Huji [Fri, 6 Aug 2010 10:43:28 +0000 (10:43 +0000)]
Updating main-rtl.css for Vector skin to ensure all left-aligned (or left-directioned) elements of the page are mirrored to right correctly.

13 years agoUpdating main-rtl.css for Vector skin to ensure all left-aligned (or left-directioned...
Huji [Fri, 6 Aug 2010 10:33:01 +0000 (10:33 +0000)]
Updating main-rtl.css for Vector skin to ensure all left-aligned (or left-directioned) elements of the page are mirrored to right correctly.

13 years agoFixup 3 messages per TW support
Sam Reed [Fri, 6 Aug 2010 06:56:19 +0000 (06:56 +0000)]
Fixup 3 messages per TW support

13 years agoFollow up r70520. More for loop fixes.
Derk-Jan Hartman [Fri, 6 Aug 2010 01:24:49 +0000 (01:24 +0000)]
Follow up r70520. More for loop fixes.

13 years agows cleanups
Mark A. Hershberger [Fri, 6 Aug 2010 00:46:24 +0000 (00:46 +0000)]
ws cleanups

13 years agoFix failing parserTests by defineing wgUseDynamicDates=1 as required by r70501
Mark A. Hershberger [Fri, 6 Aug 2010 00:37:38 +0000 (00:37 +0000)]
Fix failing parserTests by defineing wgUseDynamicDates=1 as required by r70501
(Without these mods later unrelated tests also fail… needs checking)

13 years agoupdate ParserTestSuiteBackend to match signature on setupRecorder()
Mark A. Hershberger [Thu, 5 Aug 2010 23:58:16 +0000 (23:58 +0000)]
update ParserTestSuiteBackend to match signature on setupRecorder()

13 years agoMessage and formatting tweaks for r70520. Forgot to commit this in r70527.
Siebrand Mazeland [Thu, 5 Aug 2010 21:17:50 +0000 (21:17 +0000)]
Message and formatting tweaks for r70520. Forgot to commit this in r70527.

13 years agoMessage and formatting tweaks for r70520
Siebrand Mazeland [Thu, 5 Aug 2010 20:50:50 +0000 (20:50 +0000)]
Message and formatting tweaks for r70520

13 years agoEnable $wgExperimentalHtmlIds by default
Aryeh Gregor [Thu, 5 Aug 2010 20:30:49 +0000 (20:30 +0000)]
Enable $wgExperimentalHtmlIds by default

This will result in much prettier anchors, which should actually be
intelligible in foreign languages.  For instance, for a section named
"שלום", the URL will end in "#שלום" instead of
"#.D7.A9.D7.9C.D7.95.D7.9D".  Old links will still work, since the
legacy anchors are still being output too.

This has been enabled on TranslateWiki since January, and there have
been zero complaints.  I tested just now in IE6, Firefox 3.6, Firefox
4.0, Chrome dev channel, and Opera 10.60, and all work.  I tested Opera
10.50 and IE8 some months ago as well.  A test case is at:

http://www.mediawiki.org/wiki/User:Simetrical/Id_test

(A lot of the tests are expected to fail because they already fail
anyway.)  Earlier testing indicated that Opera 10.10 wouldn't work
correctly, but that's negligible by now compared to the readability
improvements for foreign languages.  Additional testing would be
appreciated, particularly in IE7, IE8, and IE9 in their various
compatibility modes, but I hope this should be good to go by now.

13 years ago(bug 24648) Update docs for $wgHtml5
Aryeh Gregor [Thu, 5 Aug 2010 20:21:59 +0000 (20:21 +0000)]
(bug 24648) Update docs for $wgHtml5

I'd really like to remove this and set it always true, but we can't do
that until it's enabled on Wikimedia for a while successfully.

13 years agoImprove $wgExperimentalHtmlIds support
Aryeh Gregor [Thu, 5 Aug 2010 20:16:43 +0000 (20:16 +0000)]
Improve $wgExperimentalHtmlIds support

Now works (again?) in IE6.  That didn't like getting non-legacy ID's on
redirects -- it doesn't interpret them as UTF-8, so anything non-ASCII
breaks.  If this works in all the browsers I test in, I'll enable it --
it will produce *much* nicer-looking anchors for non-English wikis, and
also section names with English punctuation.

13 years agoImprovement for r70521: simplification, avoid iterating over an array. Thanks, thedj!
Max Semenik [Thu, 5 Aug 2010 20:11:44 +0000 (20:11 +0000)]
Improvement for r70521: simplification, avoid iterating over an array. Thanks, thedj!

13 years agoRestored line accidentally removed in r70520
Max Semenik [Thu, 5 Aug 2010 19:21:24 +0000 (19:21 +0000)]
Restored line accidentally removed in r70520

13 years agoFollow-up to r70520: forgot to add new files
Max Semenik [Thu, 5 Aug 2010 19:18:20 +0000 (19:18 +0000)]
Follow-up to r70520: forgot to add new files

13 years agoJavaScript-based password complexity checker on account creation and password change...
Max Semenik [Thu, 5 Aug 2010 19:16:31 +0000 (19:16 +0000)]
JavaScript-based password complexity checker on account creation and password change. Needs attention from CSS gurus to look decently.
Note that OutputPage::addPasswordSecurity() doesn't check the enabling setting to make this code reusable by extensions who don't always want to follow core settings.

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

13 years agoUse ParserOptions accessors.
Platonides [Thu, 5 Aug 2010 19:01:47 +0000 (19:01 +0000)]
Use ParserOptions accessors.
Only one direct usage remains, in ParserCache::getKey, which will be rewritten.

13 years agoMake intfunction go accross the ParserOptions.
Platonides [Thu, 5 Aug 2010 18:43:49 +0000 (18:43 +0000)]
Make intfunction go accross the ParserOptions.

Things like calling setUserLang( true ) to use the content language are unsupported and shouldn't be done.

13 years agoFurther cleanup by removing unused member variables, adding protected access and...
Niklas Laxström [Thu, 5 Aug 2010 18:38:42 +0000 (18:38 +0000)]
Further cleanup by removing unused member variables, adding protected access and documentation

Found no direct access to member variables in the repo.

13 years agoRemove unused fourth parameter for message cache constructor
Niklas Laxström [Thu, 5 Aug 2010 18:26:13 +0000 (18:26 +0000)]
Remove unused fourth parameter for message cache constructor

13 years agoSimplify MessageCache by removing mUseCache
Niklas Laxström [Thu, 5 Aug 2010 18:19:34 +0000 (18:19 +0000)]
Simplify MessageCache by removing mUseCache

Instead, make sure mMemc is always valid

13 years agoFail fast if given invalid input. We've had some of these in the past and they were...
Niklas Laxström [Thu, 5 Aug 2010 16:40:50 +0000 (16:40 +0000)]
Fail fast if given invalid input. We've had some of these in the past and they were hard to track down.

13 years agoRefactor so that tooltipAndAccesskeyAttribs does not cause 6 message cause hits if...
Niklas Laxström [Thu, 5 Aug 2010 16:22:42 +0000 (16:22 +0000)]
Refactor so that tooltipAndAccesskeyAttribs does not cause 6 message cause hits if tooltip and accesskey don't even exists

13 years agoFollowup r70500 again. More crappy spaces
Sam Reed [Thu, 5 Aug 2010 15:43:06 +0000 (15:43 +0000)]
Followup r70500 again. More crappy spaces

13 years ago(bug 24668) Followup to r48165: code accounting for pages being moved OUT of the...
Roan Kattouw [Thu, 5 Aug 2010 15:37:21 +0000 (15:37 +0000)]
(bug 24668) Followup to r48165: code accounting for pages being moved OUT of the MediaWiki namespace needs to actually be run when moving OUT of it, not when moving INTO it

13 years agoFollowup r70500, apparently we use spaces there...
Sam Reed [Thu, 5 Aug 2010 15:34:26 +0000 (15:34 +0000)]
Followup r70500, apparently we use spaces there...

13 years agoMove the math option inside ParserOptions instead of having Math.php directly sneakin...
Platonides [Thu, 5 Aug 2010 15:24:36 +0000 (15:24 +0000)]
Move the math option inside ParserOptions instead of having Math.php directly sneaking into $wgUser.
Throw an exception if trying to use the DateFormat ParserOption and the UseDynamicDates option is not set.

13 years ago* (bug 23848) Add {{ARTICLEPATH}} Magic Word
Sam Reed [Thu, 5 Aug 2010 15:21:15 +0000 (15:21 +0000)]
* (bug 23848) Add {{ARTICLEPATH}} Magic Word

Apply my patch, as it seems to be working when I tried it this time

13 years agoFollow up r70498. Actually remove the quickUserCan().
Platonides [Thu, 5 Aug 2010 14:46:14 +0000 (14:46 +0000)]
Follow up r70498. Actually remove the quickUserCan().

13 years agoChange quickUserCan( 'edit' ) and getIsPrintable() into setEditSection( false )
Platonides [Thu, 5 Aug 2010 14:37:50 +0000 (14:37 +0000)]
Change quickUserCan( 'edit' ) and getIsPrintable() into setEditSection( false )

Follow up r48544. Init ParserOptions::mIsPrintable in initialiseFromUser()
Move the "No edit section it's printable" from Parser to Article.
This leaves getIsPrintable() unused. Left there for extensions (none seems to be using it, could be removed).

The "even if the user has them on" comment wasn't accurate. The user preference only controls them via CSS.
Anyway, it would work as expected now if it got moved into ParserOptions. The setEditSection() no longer set it to true.

Remove the quickUserCan( 'edit' ) which is just a hidden way of calling $wgUser from the Parser to be explicitely
done in Article to disable the editsection. This results in quickUserCan being called once instead of twice if $wgUseETag == true;.