lhc/web/wiklou.git
13 years ago* Added Profiler::isStub() to check if we are using a stub profiler, instead of check...
Alexandre Emsenhuber [Thu, 21 Apr 2011 16:31:02 +0000 (16:31 +0000)]
* Added Profiler::isStub() to check if we are using a stub profiler, instead of checking whether $wgProfiler is set
* Replaced wfProfileClose() and wfGetProfilingOutput() by direct calls to the Profiler instance and removed them, no uses in extensions
* Also removed useless params from Profiler::getOutput() call in wfLogProfilingData()
* Only generate profiling output if it'll be used; introduced Profiler::logData() that saves profiling data (database, udp, ...) to separate it from output generation
* Removed unused Profiler::getCaller(), not used at all, and we have wfGetCaller() that does the same thing

13 years agoUse Profiler::instance() instead of $wgProfiler
Alexandre Emsenhuber [Thu, 21 Apr 2011 15:53:25 +0000 (15:53 +0000)]
Use Profiler::instance() instead of $wgProfiler

13 years ago(bug 27833) CollapsibleTabs doesn't collapse tabs due to JS errors
Roan Kattouw [Thu, 21 Apr 2011 14:39:45 +0000 (14:39 +0000)]
(bug 27833) CollapsibleTabs doesn't collapse tabs due to JS errors
* Change remove() to detach() so .data() isn't lost
* Be more careful using the parent's .data() in addData()
* Change ele (which mysteriously isn't available in the closure) to this, they're the same anyway

13 years ago(bug 28643) Merge Serbian language variant conversion improvements to trunk (r85224...
Chad Horohoe [Thu, 21 Apr 2011 14:02:38 +0000 (14:02 +0000)]
(bug 28643) Merge Serbian language variant conversion improvements to trunk (r85224, r85239, r85308) from Nikola's branch

13 years ago(bug 22209, bug 22574) Make indent, bullet list and numbered list buttons in the...
Roan Kattouw [Thu, 21 Apr 2011 13:42:39 +0000 (13:42 +0000)]
(bug 22209, bug 22574) Make indent, bullet list and numbered list buttons in the WikiEditor toolbar act on each line individually

* Reintroduce support for the splitlines argument in encapsulateSelection(). Was implemented by Adam Miller in r61493 but got lost somehow
* Add 'splitlines': true for the bullet list and numbered list buttons. The indent button already had it, so that part of r61493 did survive
* Copy options.pre and options.post to local pre and post variables instead of using (and modifying!) them directly all over the place

13 years agoFollowup to 86603 per CR: Fix var declaration of i
Leo Koppelkamm [Thu, 21 Apr 2011 09:03:04 +0000 (09:03 +0000)]
Followup to 86603 per CR: Fix var declaration of i

13 years agoMove edit.js stuff to mediawiki.action.edit.js, and remove wikibits dependency. Wrap...
Leo Koppelkamm [Thu, 21 Apr 2011 08:19:24 +0000 (08:19 +0000)]
Move edit.js stuff to mediawiki.action.edit.js, and remove wikibits dependency. Wrap publicly accessible functions inside mw.toolbar & provide legacy shortcuts to those. Make the traditional toolbar use $.fn.textSelection, to reduce code duplication. This fixes Bug 27116, Bug 15705, Bug 11011

13 years agoFix Bug 25794: Disallow multiple table captions & only keep the first
Leo Koppelkamm [Thu, 21 Apr 2011 07:27:05 +0000 (07:27 +0000)]
Fix Bug 25794: Disallow multiple table captions & only keep the first

13 years agoFollowup to r86202: Pass jQuery as argument in .ready(). Thanks Krinkle\!
Leo Koppelkamm [Thu, 21 Apr 2011 07:03:40 +0000 (07:03 +0000)]
Followup to r86202: Pass jQuery as argument in .ready(). Thanks Krinkle\!

13 years agoFixed SearchMySQL broken by r80856
Max Semenik [Thu, 21 Apr 2011 05:43:52 +0000 (05:43 +0000)]
Fixed SearchMySQL broken by r80856

13 years agoFixed bugs: Version was being checked against the wrong index after the cookie's...
Trevor Parscal [Thu, 21 Apr 2011 01:05:36 +0000 (01:05 +0000)]
Fixed bugs: Version was being checked against the wrong index after the cookie's "version:bucket" content was parsed, causing it to never match. Bucket names were being converted into numbers, resulting in NaN usually.

13 years agoSwtiched to using full mediaWiki prefix in cookies and events, rather than the shortc...
Trevor Parscal [Thu, 21 Apr 2011 00:24:20 +0000 (00:24 +0000)]
Swtiched to using full mediaWiki prefix in cookies and events, rather than the shortcut version "mw".

13 years agoRemove @static from all over the place. That's what the static keyword is for, this...
Chad Horohoe [Thu, 21 Apr 2011 00:07:09 +0000 (00:07 +0000)]
Remove @static from all over the place. That's what the static keyword is for, this being PHP5 and all

13 years agoadded wgCookiePrefix to exported variables
Nimish Gautam [Thu, 21 Apr 2011 00:06:21 +0000 (00:06 +0000)]
added wgCookiePrefix to exported variables

13 years agoFixed mismatched cookie names, changed to using ":" instead of "-" between cookie...
Trevor Parscal [Thu, 21 Apr 2011 00:02:27 +0000 (00:02 +0000)]
Fixed mismatched cookie names, changed to using ":" instead of "-" between cookie basename and bucketing key to help make the cookie more readable and removed some extra space in an error message.

13 years agoAdded generic bucketing feature to the user object, which handles bucketing users...
Trevor Parscal [Wed, 20 Apr 2011 23:58:22 +0000 (23:58 +0000)]
Added generic bucketing feature to the user object, which handles bucketing users, invalidating bucketing on version changes, tracking and and persistence.

13 years agoTweak wfDl() so it actually works properly in 5.3.x
Chad Horohoe [Wed, 20 Apr 2011 23:33:28 +0000 (23:33 +0000)]
Tweak wfDl() so it actually works properly in 5.3.x
Also add $fileName parameter in case the extension doesn't match the filename
Minor tweak for windows, its files begin php_

13 years agoa bit more polish on the datepicker styling
Ryan Kaldari [Wed, 20 Apr 2011 23:28:40 +0000 (23:28 +0000)]
a bit more polish on the datepicker styling

13 years agoadding a little padding (1px) to the select lists so that they dont look ugly
Ryan Kaldari [Wed, 20 Apr 2011 23:15:37 +0000 (23:15 +0000)]
adding a little padding (1px) to the select lists so that they dont look ugly

13 years agoRemove the JPEG/TIFF specific metadata code from BitmapHandler and put it in JpegOrTi...
Brian Wolff [Wed, 20 Apr 2011 23:15:13 +0000 (23:15 +0000)]
Remove the JPEG/TIFF specific metadata code from BitmapHandler and put it in JpegOrTiff handler
to stop mostly irrelevent classes from getting it.

Also remove a method that is an exact duplicate of a base class (not sure whats with that).

This also coincidently fixes the issue with when a foreign file repo uses PagedTiffHandler
and the local one does not, and the builtin Tiff handler tries to treat the metadata as if
it was its own form.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 20 Apr 2011 21:13:02 +0000 (21:13 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-20 21:00:00 UTC)

13 years agobug 28413: Fix IE problems with self-closing link-elements in .innerHTML. Using ...
Krinkle [Wed, 20 Apr 2011 20:45:01 +0000 (20:45 +0000)]
bug 28413: Fix IE problems with self-closing link-elements in .innerHTML. Using { attributes } instead so jQuery will use document.createElement instead of innerHTML. See also bug 28413 comments

13 years agoFixes for r86482
Raimond Spekking [Wed, 20 Apr 2011 20:19:52 +0000 (20:19 +0000)]
Fixes for r86482

13 years ago(bug 23816) Add tracking category for any page with a broken image.
Brian Wolff [Wed, 20 Apr 2011 19:43:47 +0000 (19:43 +0000)]
(bug 23816) Add tracking category for any page with a broken image.

Note this considers a link to a non-existent image to be broken. A link
to an image that exists but does not have a handler is not considered broken.

13 years agoFollow-up r86485: SQL error in patch, and also add the index to tables.sql.
Happy-melon [Wed, 20 Apr 2011 19:02:51 +0000 (19:02 +0000)]
Follow-up r86485: SQL error in patch, and also add the index to tables.sql.

13 years agoFIx inconsistent messages in r86482.
Siebrand Mazeland [Wed, 20 Apr 2011 18:08:27 +0000 (18:08 +0000)]
FIx inconsistent messages in r86482.

13 years agoFollow-up r86508: also change keys in optionals.
Siebrand Mazeland [Wed, 20 Apr 2011 18:04:40 +0000 (18:04 +0000)]
Follow-up r86508: also change keys in optionals.

13 years agoFollow-up r86048: fix fatal, and deprecated Skin static method call.
Happy-melon [Wed, 20 Apr 2011 17:34:29 +0000 (17:34 +0000)]
Follow-up r86048: fix fatal, and deprecated Skin static method call.

13 years agoFollow-up r82285: prefix group css and js pages with "Group-", and fix license header.
Happy-melon [Wed, 20 Apr 2011 17:29:24 +0000 (17:29 +0000)]
Follow-up r82285: prefix group css and js pages with "Group-", and fix license header.

13 years agoFollow-up r86482: patch to add an index on user_email. Not a problem if this is...
Happy-melon [Wed, 20 Apr 2011 15:33:04 +0000 (15:33 +0000)]
Follow-up r86482: patch to add an index on user_email.  Not a problem if this is not run on WMF wikis as long as they don't enable the $wgPasswordResetRoutes['email'].

13 years agoFollow up r86447. Support the $wiki parameter
Platonides [Wed, 20 Apr 2011 15:32:10 +0000 (15:32 +0000)]
Follow up r86447. Support the $wiki parameter

13 years agoFollowup to r86056 per CR: No need to keep jQuery object, just set it to boolean...
Leo Koppelkamm [Wed, 20 Apr 2011 15:30:26 +0000 (15:30 +0000)]
Followup to r86056 per CR: No need to keep jQuery object, just set it to boolean true

13 years ago(bug 13015, bug 18347, bug 18996, bug 20473, bug 23669, bug 28244) separate the passw...
Happy-melon [Wed, 20 Apr 2011 15:27:09 +0000 (15:27 +0000)]
(bug 13015, bug 18347, bug 18996, bug 20473, bug 23669, bug 28244) separate the password-reset request dialogue from SpecialUserlogin.
* Refactor with all the latest bells and whistles
* Allow wikis to enable resettting by entering an email address (bug 13015).  This is currently an unindexed query, but it is disabled by default so no immediate problem.
* Allow resetting to be disabled entirely (bug 20473).
* Don't send registered users' IP addresses in the emails (bug 18347)
* Check that a user is not globally blocked before letting them send messages (bug 23669)
* Display a more useful error message when an account exists globally but not locally (bug 18996).

13 years agoFollow-up r86407: missed a file (and some random documentation); I'm surprised it...
Happy-melon [Wed, 20 Apr 2011 15:26:05 +0000 (15:26 +0000)]
Follow-up r86407: missed a file (and some random documentation); I'm surprised it worked without it.

13 years agoFollowup to r86056 per CR: Remove unneeded function wrapping
Leo Koppelkamm [Wed, 20 Apr 2011 15:22:28 +0000 (15:22 +0000)]
Followup to r86056 per CR: Remove unneeded function wrapping

13 years agoFix Bug 28537: JUI buttons now have black as text-color
Leo Koppelkamm [Wed, 20 Apr 2011 12:27:26 +0000 (12:27 +0000)]
Fix Bug 28537: JUI buttons now have black as text-color

13 years ago* Made SiteStatsInit::articles() give a correct result when $wgUseCommaCount is false...
Alexandre Emsenhuber [Wed, 20 Apr 2011 11:58:00 +0000 (11:58 +0000)]
* Made SiteStatsInit::articles() give a correct result when $wgUseCommaCount is false (btw, do we really need to keep that variable?)
* Changed updateArticleCount.php to use that function instead of doing its own query

13 years agoUse OutputPage::addWikiMsg() instead of OutputPage::addHTML() with wfMsgExt()
Alexandre Emsenhuber [Wed, 20 Apr 2011 11:44:01 +0000 (11:44 +0000)]
Use OutputPage::addWikiMsg() instead of OutputPage::addHTML() with wfMsgExt()

13 years agoFix more botched something in r86457
Niklas Laxström [Wed, 20 Apr 2011 08:44:54 +0000 (08:44 +0000)]
Fix more botched something in r86457

13 years agoFix botched something in r86457
Niklas Laxström [Wed, 20 Apr 2011 08:38:47 +0000 (08:38 +0000)]
Fix botched something in r86457

13 years agoRevert r86455 based on bawolff's comments
Mark A. Hershberger [Wed, 20 Apr 2011 04:28:20 +0000 (04:28 +0000)]
Revert r86455 based on bawolff's comments

13 years agoDOH, cut-n-paste error.
Mark A. Hershberger [Wed, 20 Apr 2011 04:08:37 +0000 (04:08 +0000)]
DOH, cut-n-paste error.

13 years agoRefactor need for duplicate private Title in FeedSMItem away by moving functionality...
Mark A. Hershberger [Wed, 20 Apr 2011 03:58:34 +0000 (03:58 +0000)]
Refactor need for duplicate private Title in FeedSMItem away by moving functionality to parent.

13 years agoEnforce protected, nothing was using it outside this class
Chad Horohoe [Wed, 20 Apr 2011 03:31:15 +0000 (03:31 +0000)]
Enforce protected, nothing was using it outside this class

13 years agofixing bug 28438 - header links displaying incorrectly in rlt IE9. Also removing...
Ryan Kaldari [Wed, 20 Apr 2011 01:42:45 +0000 (01:42 +0000)]
fixing bug 28438 - header links displaying incorrectly in rlt IE9. Also removing redundant padding declaration - padding 0 is already declared for all unordered lists in vector

13 years agomake SpecialUpload::userCanExecute signature compatible with SpecialPage, which now...
Neil Kandalgaonkar [Wed, 20 Apr 2011 00:25:50 +0000 (00:25 +0000)]
make SpecialUpload::userCanExecute signature compatible with SpecialPage, which now uses type hinting

13 years agoMerge r86398 into the old wfWaitForSlaves. Update core calls.
Platonides [Wed, 20 Apr 2011 00:12:06 +0000 (00:12 +0000)]
Merge r86398 into the old wfWaitForSlaves. Update core calls.
maintenance/waitForSlave.php still calls the old prototype.
Most instances were replaced with
sed -i 's/wfWaitForSlaves( [0-9]* );/wfWaitForSlaves();/' ./maintenance/initEditCount.php ./maintenance/updateRestrictions.php ./maintenance/updateSpecialPages.php ./maintenance/importDump.php ./maintenance/moveBatch.php ./maintenance/storage/resolveStubs.php ./maintenance/storage/trackBlobs.php ./maintenance/storage/fixBug20757.php ./maintenance/storage/moveToExternal.php ./maintenance/storage/compressOld.inc ./maintenance/populateSha1.php ./maintenance/deleteDefaultMessages.php ./maintenance/migrateUserGroup.php ./maintenance/importImages.php ./maintenance/runJobs.php ./maintenance/archives/upgradeLogging.php ./maintenance/deleteBatch.php ./maintenance/populateLogSearch.php ./maintenance/populateLogUsertext.php ./maintenance/gearman/gearmanWorker.php ./maintenance/populateRevisionLength.php ./maintenance/refreshLinks.php ./maintenance/deleteSelfExternals.php ./maintenance/upgrade1_5.php ./maintenance/rebuildFileCache.php ./includes/job/RefreshLinksJob.php ./includes/installer/MysqlUpdater.php ./maintenance/convertUserOptions.php ./maintenance/populateParentId.php ./maintenance/runBatchedQuery.php ./maintenance/upgrade1_5.php ./maintenance/waitForSlave.php ./maintenance/populateCategory.php ./maintenance/importImages.php

13 years agofollowup to r86046 -- reverting upgrade of datepicker. In UploadWizard, new version...
Neil Kandalgaonkar [Tue, 19 Apr 2011 23:45:22 +0000 (23:45 +0000)]
followup to r86046 -- reverting upgrade of datepicker. In UploadWizard, new version causes the calendar to not be hidden once upload created

13 years agoQuick comments for r79036
Aaron Schulz [Tue, 19 Apr 2011 23:18:13 +0000 (23:18 +0000)]
Quick comments for r79036

13 years agoAdded keys option to jquery.localize, allowing message keys to be remapped when rende...
Trevor Parscal [Tue, 19 Apr 2011 21:01:01 +0000 (21:01 +0000)]
Added keys option to jquery.localize, allowing message keys to be remapped when rendering a template by providing a an object of [message-key-in-template]/[message-key-to-use] pairs.

13 years agoFixed doMainQuery() so that it doesn't mindlessly select all columns on 2-4 (more...
Aaron Schulz [Tue, 19 Apr 2011 20:39:08 +0000 (20:39 +0000)]
Fixed doMainQuery() so that it doesn't mindlessly select all columns on 2-4 (more with extensions) tables. No extensions in SVN should need updating. All except FlaggedRevs just filter with conditions, and FlaggedRevs already adds its required columns to to fields array (which was basically unused before).

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 19 Apr 2011 19:46:02 +0000 (19:46 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-19 19:40:00 UTC)

13 years agoChange tests to match preprocessor changes in r86072.
Platonides [Tue, 19 Apr 2011 18:39:37 +0000 (18:39 +0000)]
Change tests to match preprocessor changes in r86072.

sed -i 's/<root><\(template\|tplarg\)>/<root><\1 lineStart=\\"1\\">/' phpunit/includes/parser/PreprocessorTest.php
sed -i 's/<root><\(template\|tplarg\)>/<root><\1 lineStart="1">/' parser/preprocess/*.expected

13 years ago(Bug 28611) Don't die in SqlBagOStuff::incr() if there's a race condition.
Platonides [Tue, 19 Apr 2011 17:59:59 +0000 (17:59 +0000)]
(Bug 28611) Don't die in SqlBagOStuff::incr() if there's a race condition.

13 years agoFix r86255
Sam Reed [Tue, 19 Apr 2011 17:45:36 +0000 (17:45 +0000)]
Fix r86255

PHP Strict Standards: Declaration of UserrightsPage::userCanExecute() should be compatible with that of SpecialPage::userCanExecute() in /www/w/includes/AutoLoader.php on line 871

13 years agoFollow-up r86143: retain query parameters for quick-purge as well as for the full...
Happy-melon [Tue, 19 Apr 2011 16:20:19 +0000 (16:20 +0000)]
Follow-up r86143: retain query parameters for quick-purge as well as for the full form.

13 years agoAPI: Clarify help text for cmstartsortkey and cmendsortkey parameters
Roan Kattouw [Tue, 19 Apr 2011 15:46:05 +0000 (15:46 +0000)]
API: Clarify help text for cmstartsortkey and cmendsortkey parameters

13 years agoFollow-up r86255: don't special-case redirecting special pages in executePath(),...
Happy-melon [Tue, 19 Apr 2011 15:45:03 +0000 (15:45 +0000)]
Follow-up r86255: don't special-case redirecting special pages in executePath(), make them subclass a RedirectSpecialPage and have their execute() method do the redirection.  Fixes fatal errors seen on TWN where executePath() was trying to call SpecialMyPage::execute(), which bubbled up to SpecialPage::execute() and made a horrible mess.

13 years agoPut the code for waiting for slave lag the new-and-improved way (using master positio...
Roan Kattouw [Tue, 19 Apr 2011 14:52:11 +0000 (14:52 +0000)]
Put the code for waiting for slave lag the new-and-improved way (using master position) in wfWaitForSlaves_masterPos(). I guess I should deprecate or re-do wfWaitForSlaves() and update callers, but I'm lazy

13 years ago(bug 28610) unsegement is not a word
Chad Horohoe [Tue, 19 Apr 2011 14:04:00 +0000 (14:04 +0000)]
(bug 28610) unsegement is not a word

13 years agoTypo corrected: enterntainment - detected by Hamilton Abreu, see
Purodha B Blissenbach [Tue, 19 Apr 2011 11:35:07 +0000 (11:35 +0000)]
Typo corrected: enterntainment - detected by Hamilton Abreu, see
https://translatewiki.net/wiki/Thread:Support/MediaWiki:Exif-iimcategory-ace/en

13 years agoDocumentation, braces, and one update of the User email sanitisation call
Sam Reed [Tue, 19 Apr 2011 11:03:40 +0000 (11:03 +0000)]
Documentation, braces, and one update of the User email sanitisation call

13 years agoFollowup r86367, don't make constructor protected just yet, few underlying callers...
Sam Reed [Tue, 19 Apr 2011 10:40:32 +0000 (10:40 +0000)]
Followup r86367, don't make constructor protected just yet, few underlying callers still about

Need a way to do a blank title without using the constructor (Title::newBlank() maybe?)

* (bug 28608) Fatal error: Call to protected Title::__construct()

13 years agoRemoved JavaScriptDistiller: unused
Max Semenik [Tue, 19 Apr 2011 10:13:25 +0000 (10:13 +0000)]
Removed JavaScriptDistiller: unused

13 years agoFollow-up r86347: fix undefined variable by actually returning the type suggested...
Happy-melon [Tue, 19 Apr 2011 10:11:16 +0000 (10:11 +0000)]
Follow-up r86347: fix undefined variable by actually returning the type suggested in the documentation.

13 years agoRemoved check whether memory_get_usage() exists; per manual it is always included...
Alexandre Emsenhuber [Tue, 19 Apr 2011 06:26:30 +0000 (06:26 +0000)]
Removed check whether memory_get_usage() exists; per manual it is always included since PHP 5.2.1 even without --enable-memory-limit

13 years ago* Changed wfMsgNoDBForContent() call to wfMessage(); also switched to user's language...
Alexandre Emsenhuber [Tue, 19 Apr 2011 06:21:06 +0000 (06:21 +0000)]
* Changed wfMsgNoDBForContent() call to wfMessage(); also switched to user's language, I don't see any reason to not display this in user's language
* Marked wfMsgNoDBForContent() as deprecated and added wfDeprecated() call; the call in LoadBalancer was the only one in core and extensions
* Also added call to wfDeprecated() in wfMsgWeirdKey(); no call in core or extensions

13 years agoRemoved action=print; I can't find anything using this
Aaron Schulz [Tue, 19 Apr 2011 05:29:04 +0000 (05:29 +0000)]
Removed action=print; I can't find anything using this

13 years agoFollow-up r86113: define E_DEPRECATED for PHP 5.2
Happy-melon [Mon, 18 Apr 2011 23:36:47 +0000 (23:36 +0000)]
Follow-up r86113: define E_DEPRECATED for PHP 5.2

13 years agoApply phase3 related Title fixes. With one minor addition, Title constructor marked...
Sam Reed [Mon, 18 Apr 2011 23:20:21 +0000 (23:20 +0000)]
Apply phase3 related Title fixes. With one minor addition, Title constructor marked as protected, "just in case"...

Patches by Yuvi Panda

From (bug 28583) Remove all /* private */ declarations in MediaWiki core

13 years agoFollow-up r86364: Ctrl-S fail.
Happy-melon [Mon, 18 Apr 2011 23:18:16 +0000 (23:18 +0000)]
Follow-up r86364: Ctrl-S fail.

13 years agoMove User::isValidEmailAddr() to Sanitizer.
Happy-melon [Mon, 18 Apr 2011 23:16:53 +0000 (23:16 +0000)]
Move User::isValidEmailAddr() to Sanitizer.

13 years agoApply LoadBalancer related fixes
Sam Reed [Mon, 18 Apr 2011 23:12:58 +0000 (23:12 +0000)]
Apply LoadBalancer related fixes

Patches by Yuvi Panda

From (bug 28583) Remove all /* private */ declarations in MediaWiki core

13 years agoAdd ThrottledError to throw when the user hits a rate limit.
Happy-melon [Mon, 18 Apr 2011 22:29:23 +0000 (22:29 +0000)]
Add ThrottledError to throw when the user hits a rate limit.

13 years agoCleanup in SpecialPage.php:
Happy-melon [Mon, 18 Apr 2011 21:25:06 +0000 (21:25 +0000)]
Cleanup in SpecialPage.php:
* Enforce private access for member variables suggested since at least 1.4.  Didn't do $mName because grepping for "->mName" gave far too many results to check.
* Move the stuff related to redirects (getRedirect(), getRedirectQuery(), $mAllowedRedirectParams and $mAddedRedirectParams) to SpecialRedirectToSpecial and adjust callers
* Document stuff
* Mark getFile() as deprecated
* Group together getListed(), setListed() and listed() to draw attention to the fact that all three have been there since 1.6 and that we need to pick one and deprecate the other(s)
* add isIncludable() getter
* mark as deprecated and evil the mutators added in 1.6 for things which *really* shouldn't be mutating anywhere.  AFAICT they're not actually used many places.  Didn't deprecate including() as it's in wide use and it's legitimately set in SpecialPageFactory::executePath().

13 years agoWarn that SpecialPage::execute() will be made abstract at some point in the future...
Happy-melon [Mon, 18 Apr 2011 21:07:30 +0000 (21:07 +0000)]
Warn that SpecialPage::execute() will be made abstract at some point in the future, which is the endpoint of getting rid of the define-special-pages-by-global-functions structure.  Committing this separate to the other changes because it should be backported to 1.17.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 18 Apr 2011 20:25:13 +0000 (20:25 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-18 19:57:00 UTC)

13 years agoFollow-up r86255: getTitleFor() was not migrated.
Happy-melon [Mon, 18 Apr 2011 19:44:52 +0000 (19:44 +0000)]
Follow-up r86255: getTitleFor() was not migrated.

13 years agor86088: Get rid of eval by implemting a MergeSort algorithm. It's a few ms slower...
Leo Koppelkamm [Mon, 18 Apr 2011 19:20:02 +0000 (19:20 +0000)]
r86088: Get rid of eval by implemting a MergeSort algorithm. It's a few ms slower on very large tables, but is stable-sorting in all browsers

13 years agoRevert avars deprecation in r11308
Sam Reed [Mon, 18 Apr 2011 19:03:46 +0000 (19:03 +0000)]
Revert avars deprecation in r11308

Swap a couple of name() to getName()

13 years ago(bug 28583) chase down and beat to death external calls of functions marked /*private...
Happy-melon [Mon, 18 Apr 2011 19:03:14 +0000 (19:03 +0000)]
(bug 28583) chase down and beat to death external calls of functions marked /*private*/, and make those declarations actually binding.  Patch by yuvipanda.

13 years agoRevert r86236
Sam Reed [Mon, 18 Apr 2011 19:00:48 +0000 (19:00 +0000)]
Revert r86236

13 years ago* (bug 28592) Wrong timestamp were displayed in old revisions
Alexandre Emsenhuber [Mon, 18 Apr 2011 17:59:32 +0000 (17:59 +0000)]
* (bug 28592) Wrong timestamp were displayed in old revisions

13 years ago* Use $this->getTitle() instead of SpecialPage::getTitleFor( $this->name() )
Alexandre Emsenhuber [Mon, 18 Apr 2011 17:51:16 +0000 (17:51 +0000)]
* Use $this->getTitle() instead of SpecialPage::getTitleFor( $this->name() )
* Fix whitespace issue

13 years agoUpdate all core calls of SpecialPage->getName();
Sam Reed [Mon, 18 Apr 2011 17:39:07 +0000 (17:39 +0000)]
Update all core calls of SpecialPage->getName();

13 years agoE_STRICT in DB2. Ping r85885.
Max Semenik [Mon, 18 Apr 2011 17:28:35 +0000 (17:28 +0000)]
E_STRICT in DB2. Ping r85885.

13 years agoPer CR on r78824 (#c12467): Some query pages are useless/redundant, since we already...
Chad Horohoe [Mon, 18 Apr 2011 17:04:50 +0000 (17:04 +0000)]
Per CR on r78824 (#c12467): Some query pages are useless/redundant, since we already output them elsewhere in the API, so we shouldn't expose them.

13 years ago* Use DatabaseBase::selectField() to build the query instead of throwing a raw query...
Alexandre Emsenhuber [Mon, 18 Apr 2011 16:43:20 +0000 (16:43 +0000)]
* Use DatabaseBase::selectField() to build the query instead of throwing a raw query in DatabaseBase::query()
* Use MWNamespace::getContentNamespaces() instead of $wgContentNamespaces

13 years agoUse MWNamespace::getContentNamespaces() instead of $wgContentNamespaces in case of...
Alexandre Emsenhuber [Mon, 18 Apr 2011 16:33:16 +0000 (16:33 +0000)]
Use MWNamespace::getContentNamespaces() instead of $wgContentNamespaces in case of misconfiguration of the latter

13 years agoFollowup rr86304
Sam Reed [Mon, 18 Apr 2011 14:02:13 +0000 (14:02 +0000)]
Followup rr86304

We need a title object for parsing, do one against the message key

Doesn't seem to be the best way, but it's the most applicable. If I abused $wgTitle, Chad would come and beat me too ;)

13 years agoFollowup r86304
Sam Reed [Mon, 18 Apr 2011 13:53:24 +0000 (13:53 +0000)]
Followup r86304

Things won't just happily accept a ParserOutput object when they were getting strings before

Add missing calling parameter

13 years agoFew more comment/whitespace issues from r86169
Sam Reed [Mon, 18 Apr 2011 13:18:15 +0000 (13:18 +0000)]
Few more comment/whitespace issues from r86169

13 years agoFew style/whitespace/comment issues from r86169
Sam Reed [Mon, 18 Apr 2011 13:08:20 +0000 (13:08 +0000)]
Few style/whitespace/comment issues from r86169

13 years agoReplace $wgMessageCache with MessageCache::singleton()
Sam Reed [Mon, 18 Apr 2011 12:59:50 +0000 (12:59 +0000)]
Replace $wgMessageCache with MessageCache::singleton()

Fix some tab/space issues

Follows up r86304

13 years agoFollowup r86088 per CR: Move month array builder into language; use mw.config.get...
Leo Koppelkamm [Mon, 18 Apr 2011 12:54:28 +0000 (12:54 +0000)]
Followup r86088 per CR: Move month array builder into language; use mw.config.get(); Fix rowspans and some cleanup

13 years ago* (bug 28532) wfMsgExt() and wfMsgWikiHtml() use $wgOut->parse()
Sam Reed [Mon, 18 Apr 2011 12:43:53 +0000 (12:43 +0000)]
* (bug 28532) wfMsgExt() and wfMsgWikiHtml() use $wgOut->parse()
* (bug 16129) Transcluded special pages expose strip markers when they output parsed messages

Also adding some related documentation during my travels around the code

13 years agoRevert unintended changes from r86302
Sam Reed [Mon, 18 Apr 2011 12:00:20 +0000 (12:00 +0000)]
Revert unintended changes from r86302

13 years ago* (bug 28586) YAML: strings that are the same as boolean literals
Sam Reed [Mon, 18 Apr 2011 11:42:44 +0000 (11:42 +0000)]
* (bug 28586) YAML: strings that are the same as boolean literals
* (bug 28591) Update/replace/supplement spyc (YAML parsing library)
* YAML API output is now 1.2 compliant, using JSON as the formatter

YAML 1.2 spec is a JSON subset - "The primary objective of this revision is to bring YAML into compliance with JSON as an official subset. YAML 1.2 is compatible with 1.1 for most practical applications - this is a minor revision." [1] Per discussion with Tim, switch YAML to use the JSON formatter

Was originally going to delete the ApiFormatYaml per Tim, but class needed to keep nicer (and apparent) output in API help page

Hence made subclass ApiFormatJson, minimal method overriding

spyc.php deleted from libs

[1] http://www.yaml.org/spec/1.2/spec.html#id2803629

13 years agoUpdate messages files for r86294: revert of r86186, r86187, r86227, r86276.
Siebrand Mazeland [Mon, 18 Apr 2011 11:32:25 +0000 (11:32 +0000)]
Update messages files for r86294: revert of r86186, r86187, r86227, r86276.
* also contains recent translations from http://translatewiki.net.

13 years agoFollowup to r85021: Fix changed ID name
Leo Koppelkamm [Mon, 18 Apr 2011 09:35:14 +0000 (09:35 +0000)]
Followup to r85021: Fix changed ID name