lhc/web/wiklou.git
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

13 years ago(bug 28590) Temporary revert of r86186, r86187, r86227, r86276: caused instant breaka...
Tim Starling [Mon, 18 Apr 2011 08:42:59 +0000 (08:42 +0000)]
(bug 28590) Temporary revert of r86186, r86187, r86227, r86276: caused instant breakage of Wikimedia websites via LocalisationUpdate due to the introduction of the recentchanges-summary message.

13 years agoTidy and reorganise the AutoLoader array, because its almost-alphabetical-but-not...
Happy-melon [Sun, 17 Apr 2011 23:42:22 +0000 (23:42 +0000)]
Tidy and reorganise the AutoLoader array, because its almost-alphabetical-but-not-quite status was annoying me inordinately...  :D  classes are now divided strictly by subfolder, the subfolders are in alphabetical order, and classes within each subfolder are strictly in alphabetical order.

13 years agoFollow-up r86255: rm duplicated config list
Happy-melon [Sun, 17 Apr 2011 20:34:25 +0000 (20:34 +0000)]
Follow-up r86255: rm duplicated config list

13 years agoRename Special:Resetpass to Special:ChangePassword. "pass" is vague and unintuitive...
Happy-melon [Sun, 17 Apr 2011 20:29:24 +0000 (20:29 +0000)]
Rename Special:Resetpass to Special:ChangePassword.  "pass" is vague and unintuitive, "reset" is only half of the page's function, and I'd quite like "Special:ResetPassword" for a much cleaner implementation of the 'enter-something-to-be-sent-a-reset-email' interface for bug 28244, bug 13015, etc.  Diff looks much worse than it is because I had to update 95 language files...

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 17 Apr 2011 19:56:58 +0000 (19:56 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-17 19:30:00 UTC)

13 years agoFollow-up r85929: update MediaWiki::articleFromTitle() calls in extensions (and a...
Happy-melon [Sun, 17 Apr 2011 19:25:30 +0000 (19:25 +0000)]
Follow-up r85929: update MediaWiki::articleFromTitle() calls in extensions (and a few edgecases which were missed in core)

13 years ago* Display the "blanknamespace" in user's language, as in all other places
Alexandre Emsenhuber [Sun, 17 Apr 2011 14:14:52 +0000 (14:14 +0000)]
* Display the "blanknamespace" in user's language, as in all other places
* Don't transform it since this will be done by the addWikiMsg() call

13 years agoFollowup to r86202 per CR: Add href=# to trigger hand cursor
Leo Koppelkamm [Sun, 17 Apr 2011 13:48:38 +0000 (13:48 +0000)]
Followup to r86202 per CR: Add href=# to trigger hand cursor

13 years agoAPI: BREAKING CHANGE: (bug 28541) Output of binary ICU sortkeys is broken. Change...
Roan Kattouw [Sun, 17 Apr 2011 12:41:29 +0000 (12:41 +0000)]
API: BREAKING CHANGE: (bug 28541) Output of binary ICU sortkeys is broken. Change sortkey fields in prop=categories and list=categorymembers to hexadecimal strings, that way we don't have any issues with scary binary stuff. Also change cmcontinue to take hex-encoded sortkeys and swap the order back to normal (previously sortkey was at the end because it could contain pipe characters, but that's not an issue with hex).

13 years agoRefactor the factory/i18n/list/etc static methods from SpecialPage into their own...
Happy-melon [Sun, 17 Apr 2011 11:31:11 +0000 (11:31 +0000)]
Refactor the factory/i18n/list/etc static methods from SpecialPage into their own class; there's no reason we need to be parsing them in every single SpecialPage subclass.  Leave all the methods as stubs in SpecialPage.php; if we required PHP 5.3 they could be replaced by a a __callStatic() magic method, but that doesn't work on PHP 5.2.

Also make a few changes to the functions available.  SpecialPageFactory::resolveAlias() now takes an optional subpage and returns array(<name>,<subpage>).  Similarly merge getPage() and getPageByAlias().  There were many examples of (extensions particularly) making dubious assumptions about the presence or absence of subpages or canonical-ness.

I didn't deprecate SpecialPage::getTitleFor() as it's got over six hundred calls.  I'm rather undecided on the best position of getPage()/executePath().  Although the latter needs cleanup anyway.

13 years agoRemove debugging code accidentally committed in r86253
Roan Kattouw [Sun, 17 Apr 2011 10:49:27 +0000 (10:49 +0000)]
Remove debugging code accidentally committed in r86253

13 years agoFix broken check for bad JSON encoders, had been broken since inception and caused...
Roan Kattouw [Sun, 17 Apr 2011 10:48:17 +0000 (10:48 +0000)]
Fix broken check for bad JSON encoders, had been broken since inception and caused the native JSON encoder to always be bypassed in favor of Services_JSON.

13 years agoTidy up some more uses of SpecialPage static methods
Happy-melon [Sun, 17 Apr 2011 10:44:44 +0000 (10:44 +0000)]
Tidy up some more uses of SpecialPage static methods

13 years ago* (bug 28511) Use [] syntax instead of {} for string offset access
Alexandre Emsenhuber [Sun, 17 Apr 2011 07:59:58 +0000 (07:59 +0000)]
* (bug 28511) Use [] syntax instead of {} for string offset access

13 years agoBack out r86054 and part of r86059 for now, I'd like to evaluate the possibility...
Max Semenik [Sun, 17 Apr 2011 05:46:41 +0000 (05:46 +0000)]
Back out r86054 and part of r86059 for now, I'd like to evaluate the possibility of integrating NeilK's work into the core now

13 years agoSome more documentation and replacing static Skin calls
Happy-melon [Sat, 16 Apr 2011 23:23:28 +0000 (23:23 +0000)]
Some more documentation and replacing static Skin calls

13 years agoFix some type hints, documentation and potentially-undefined-variables which PhpStorm...
Happy-melon [Sat, 16 Apr 2011 22:05:54 +0000 (22:05 +0000)]
Fix some type hints, documentation and potentially-undefined-variables which PhpStorm was complaining about.

13 years agomethod signatures, E_STRICT, blah blah blah
Chad Horohoe [Sat, 16 Apr 2011 21:59:01 +0000 (21:59 +0000)]
method signatures, E_STRICT,  blah blah blah

13 years agoMore deprecated calls to Skin static methods, update to use Linker methods instead.
Happy-melon [Sat, 16 Apr 2011 21:43:32 +0000 (21:43 +0000)]
More deprecated calls to Skin static methods, update to use Linker methods instead.

13 years agoFix fatal in Standard skin.
Happy-melon [Sat, 16 Apr 2011 20:22:18 +0000 (20:22 +0000)]
Fix fatal in Standard skin.

13 years agoUpdate Skin.php to not call the now-separate Linker methods via $this->foo().
Happy-melon [Sat, 16 Apr 2011 20:01:39 +0000 (20:01 +0000)]
Update Skin.php to not call the now-separate Linker methods via $this->foo().

13 years agoFollowup r86228 (profiling cleanup):
Chad Horohoe [Sat, 16 Apr 2011 19:30:50 +0000 (19:30 +0000)]
Followup r86228 (profiling cleanup):
* Move autoloader up in Maintenance as well
* Add setInstance() method to Profiler, dumpHTML will need it
* Move get/setProfileId() up a level to Profiler. ProfilerSimple subclasses use it, behavior is harmless for Stub.

13 years agoFollowup r86228 (profiling cleanup):
Chad Horohoe [Sat, 16 Apr 2011 19:23:45 +0000 (19:23 +0000)]
Followup r86228 (profiling cleanup):
* Move autoloader up in Maintenance as well
* Add setInstance() method to Profiler, dumpHTML will need it

13 years agoLocalisation updates from translatewiki.net. Support for Angika, Brahui, Central...
Siebrand Mazeland [Sat, 16 Apr 2011 19:11:20 +0000 (19:11 +0000)]
Localisation updates from translatewiki.net. Support for Angika, Brahui, Central Dusin, Jamaican Creole English and Khowar added.

13 years agoMore profiler cleanup:
Chad Horohoe [Sat, 16 Apr 2011 19:00:54 +0000 (19:00 +0000)]
More profiler cleanup:
* Move autoloader up a little bit so the profiler classes can use it
* Make Profiler into a singleton so it's lazy-constructed, $wgProfiler is now a configuration array (used 'visible' in ProfilerSimpleText as an example of other globals we can move into this array). If $wgProfiler is set to an object, it'll use that for back-compat
* Maintenance: rather than setting up the profiler and then disabling it, just disable it from the start
* Kill $wgProfiling -> now that ProfilerStub overrides profileIn() and profileOut(), it's not needed
* dumpHTML needs some fixes still

13 years agoLocalisation updates from translatewiki.net.
Siebrand Mazeland [Sat, 16 Apr 2011 18:53:10 +0000 (18:53 +0000)]
Localisation updates from translatewiki.net.

13 years agofollow-up r86195 (Sort of). Make sure the string there can really be exploded before...
Brian Wolff [Sat, 16 Apr 2011 18:34:24 +0000 (18:34 +0000)]
follow-up r86195 (Sort of). Make sure the string there can really be exploded before calling explode on it.

I originally had the two variables that r86195 removed there to catch the case of a malformed
png file that didn't have a null byte where it was supposed to. However, just declaring the default
for those variables wouldn't have been enough to prevent the warning from list( blah, blah) = explode(..
So now explicitly check the null byte is there like it should be.

13 years ago(follow-up r86169) per Reedy, the $val = $val thing is weird.
Brian Wolff [Sat, 16 Apr 2011 17:25:48 +0000 (17:25 +0000)]
(follow-up r86169) per Reedy, the $val = $val thing is weird.

Most of these were actually here going way way back to the dark ages
(although they were hidden as $tags[$tag] = $val; with $val being the same as $tags[$tag])

13 years agoConsistent casing for PLURAL.
Siebrand Mazeland [Sat, 16 Apr 2011 17:22:15 +0000 (17:22 +0000)]
Consistent casing for PLURAL.

13 years ago(follow-up r86169) I had {{plural}} screwed up in Exif-gpsaltitude-below-sealevel...
Brian Wolff [Sat, 16 Apr 2011 16:59:59 +0000 (16:59 +0000)]
(follow-up r86169) I had {{plural}} screwed up in Exif-gpsaltitude-below-sealevel and Exif-gpsaltitude-above-sealevel

Thank you to DCLXVI from translatewiki for pointing this out to me :)

13 years agofollow-up r86195 - That $valid really was reachable :P
Brian Wolff [Sat, 16 Apr 2011 16:23:08 +0000 (16:23 +0000)]
follow-up r86195 - That $valid really was reachable :P
follow-up r86169 - It appears when merging PNGMetadataExtractor.php, I somehow deleted $duration (whoops!)

13 years ago(Follow-up r86169) Needed supress warnings around iconv
Brian Wolff [Sat, 16 Apr 2011 15:53:08 +0000 (15:53 +0000)]
(Follow-up r86169) Needed supress warnings around iconv
Also make it try to detect if a jpeg file comment has textual data, or is random binary stuff.

13 years ago(follow-up r86130) the normalizer_normalize function doesn't replace things like...
Brian Wolff [Sat, 16 Apr 2011 15:32:19 +0000 (15:32 +0000)]
(follow-up r86130) the normalizer_normalize function doesn't replace things like U+0001
which causes all sorts of pain and suffering if inserted into a page.

(discovered at translatewiki)

13 years agoGive fieldsets in vector preferences the same look in JS and non-JS version. This...
Leo Koppelkamm [Sat, 16 Apr 2011 14:44:18 +0000 (14:44 +0000)]
Give fieldsets in vector preferences the same look in JS and non-JS version. This gets rid of the flash of blue borders before the preference JS ran

13 years agoMove timezone preference functions to mediawiki.special.preferences.js & remove their...
Leo Koppelkamm [Sat, 16 Apr 2011 14:03:07 +0000 (14:03 +0000)]
Move timezone preference functions to mediawiki.special.preferences.js & remove their wikibits dependencies

13 years agoRevert r85006
Platonides [Sat, 16 Apr 2011 12:59:08 +0000 (12:59 +0000)]
Revert r85006

13 years agoFix syntax error in r86201
Siebrand Mazeland [Sat, 16 Apr 2011 12:02:52 +0000 (12:02 +0000)]
Fix syntax error in r86201

13 years agoFree metadata toggle script from wikibits.js dependencies; rename to mediawiki.action...
Leo Koppelkamm [Sat, 16 Apr 2011 11:54:43 +0000 (11:54 +0000)]
Free metadata toggle script from wikibits.js dependencies; rename to mediawiki.action.view.metadata.js

13 years agoUpdate $wgEXIFMessages for r86169.
Siebrand Mazeland [Sat, 16 Apr 2011 11:36:03 +0000 (11:36 +0000)]
Update $wgEXIFMessages for r86169.

13 years agoRemove some unused variables/globals
Sam Reed [Sat, 16 Apr 2011 11:28:35 +0000 (11:28 +0000)]
Remove some unused variables/globals

Fix another unreachable statement

13 years agoRebuild all language files.
Siebrand Mazeland [Sat, 16 Apr 2011 11:27:11 +0000 (11:27 +0000)]
Rebuild all language files.

Removes messages removed from MessagesEn.php in r86146, r86155, r86157, r86169.

13 years agoFix missing abstract methods, logging against r86001
Sam Reed [Sat, 16 Apr 2011 11:25:37 +0000 (11:25 +0000)]
Fix missing abstract methods, logging against r86001

13 years agoRemove trailing whitespace.
Siebrand Mazeland [Sat, 16 Apr 2011 11:22:21 +0000 (11:22 +0000)]
Remove trailing whitespace.

13 years agoFix $row = $row = $.... and unused variable from r85885
Sam Reed [Sat, 16 Apr 2011 11:22:14 +0000 (11:22 +0000)]
Fix $row = $row = $.... and unused variable from r85885