Commit graph

35063 commits

Author SHA1 Message Date
Sam Reed
a02b99c55d Revert unintended changes from r86302 2011-04-18 12:00:20 +00:00
Sam Reed
a6569e0294 * (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
2011-04-18 11:42:44 +00:00
Siebrand Mazeland
de485b6924 Update messages files for r86294: revert of r86186, r86187, r86227, r86276.
* also contains recent translations from http://translatewiki.net.
2011-04-18 11:32:25 +00:00
Leo Koppelkamm
40bc91e203 Followup to r85021: Fix changed ID name 2011-04-18 09:35:14 +00:00
Tim Starling
b13d5ca6f5 (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. 2011-04-18 08:42:59 +00:00
Happy-melon
0c896dcf85 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. 2011-04-17 23:42:22 +00:00
Happy-melon
4e98714f3f Follow-up r86255: rm duplicated config list 2011-04-17 20:34:25 +00:00
Happy-melon
1a80d46370 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... 2011-04-17 20:29:24 +00:00
Raimond Spekking
c646610560 Localisation updates for core and extension messages from translatewiki.net (2011-04-17 19:30:00 UTC) 2011-04-17 19:56:58 +00:00
Happy-melon
400357e90a Follow-up r85929: update MediaWiki::articleFromTitle() calls in extensions (and a few edgecases which were missed in core) 2011-04-17 19:25:30 +00:00
Alexandre Emsenhuber
0238304e39 * 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
2011-04-17 14:14:52 +00:00
Leo Koppelkamm
d8c849e77f Followup to r86202 per CR: Add href=# to trigger hand cursor 2011-04-17 13:48:38 +00:00
Roan Kattouw
8cc843f25c 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). 2011-04-17 12:41:29 +00:00
Happy-melon
2c9cfd7cce 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.
2011-04-17 11:31:11 +00:00
Roan Kattouw
e77aa77cd8 Remove debugging code accidentally committed in r86253 2011-04-17 10:49:27 +00:00
Roan Kattouw
3a7731a6f0 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. 2011-04-17 10:48:17 +00:00
Happy-melon
4853c8a0d2 Tidy up some more uses of SpecialPage static methods 2011-04-17 10:44:44 +00:00
Alexandre Emsenhuber
4207ab0c63 * (bug 28511) Use [] syntax instead of {} for string offset access 2011-04-17 07:59:58 +00:00
Max Semenik
9b1d54fc70 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 2011-04-17 05:46:41 +00:00
Happy-melon
a9038b2c26 Some more documentation and replacing static Skin calls 2011-04-16 23:23:28 +00:00
Happy-melon
806c6d3cbe Fix some type hints, documentation and potentially-undefined-variables which PhpStorm was complaining about. 2011-04-16 22:05:54 +00:00
Chad Horohoe
248ff9031e method signatures, E_STRICT, blah blah blah 2011-04-16 21:59:01 +00:00
Happy-melon
0c5fe31dc7 More deprecated calls to Skin static methods, update to use Linker methods instead. 2011-04-16 21:43:32 +00:00
Happy-melon
626e9fd811 Fix fatal in Standard skin. 2011-04-16 20:22:18 +00:00
Happy-melon
e76c7823c1 Update Skin.php to not call the now-separate Linker methods via $this->foo(). 2011-04-16 20:01:39 +00:00
Chad Horohoe
1c13096d9b 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.
2011-04-16 19:30:50 +00:00
Chad Horohoe
e5d496b121 Followup r86228 (profiling cleanup):
* Move autoloader up in Maintenance as well
* Add setInstance() method to Profiler, dumpHTML will need it
2011-04-16 19:23:45 +00:00
Siebrand Mazeland
014647a04a Localisation updates from translatewiki.net. Support for Angika, Brahui, Central Dusin, Jamaican Creole English and Khowar added. 2011-04-16 19:11:20 +00:00
Chad Horohoe
5a6d1ee2d3 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
2011-04-16 19:00:54 +00:00
Siebrand Mazeland
c962c5c35c Localisation updates from translatewiki.net. 2011-04-16 18:53:10 +00:00
Brian Wolff
5c3a804b6c 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.
2011-04-16 18:34:24 +00:00
Brian Wolff
7a5d1f4c4b (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])
2011-04-16 17:25:48 +00:00
Siebrand Mazeland
ca52d72171 Consistent casing for PLURAL. 2011-04-16 17:22:15 +00:00
Brian Wolff
a645f00d9b (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 :)
2011-04-16 16:59:59 +00:00
Brian Wolff
66c80ed6e4 follow-up r86195 - That $valid really was reachable :P
follow-up r86169 - It appears when merging PNGMetadataExtractor.php, I somehow deleted $duration (whoops!)
2011-04-16 16:23:08 +00:00
Brian Wolff
84148848f9 (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.
2011-04-16 15:53:08 +00:00
Brian Wolff
5c750139a6 (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)
2011-04-16 15:32:19 +00:00
Leo Koppelkamm
c6e79d969c 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 2011-04-16 14:44:18 +00:00
Leo Koppelkamm
bf99353feb Move timezone preference functions to mediawiki.special.preferences.js & remove their wikibits dependencies 2011-04-16 14:03:07 +00:00
Platonides
a27008d430 Revert r85006 2011-04-16 12:59:08 +00:00
Siebrand Mazeland
fcf4c26c6a Fix syntax error in r86201 2011-04-16 12:02:52 +00:00
Leo Koppelkamm
1e13a6c94f Free metadata toggle script from wikibits.js dependencies; rename to mediawiki.action.view.metadata.js 2011-04-16 11:54:43 +00:00
Siebrand Mazeland
ec322fd084 Update $wgEXIFMessages for r86169. 2011-04-16 11:36:03 +00:00
Sam Reed
a6f56411a2 Remove some unused variables/globals
Fix another unreachable statement
2011-04-16 11:28:35 +00:00
Siebrand Mazeland
859fa0b3fe Rebuild all language files.
Removes messages removed from MessagesEn.php in r86146, r86155, r86157, r86169.
2011-04-16 11:27:11 +00:00
Sam Reed
da98f8a791 Fix missing abstract methods, logging against r86001 2011-04-16 11:25:37 +00:00
Siebrand Mazeland
3929cca4e7 Remove trailing whitespace. 2011-04-16 11:22:21 +00:00
Sam Reed
64d8ac24a6 Fix $row = $row = $.... and unused variable from r85885 2011-04-16 11:22:14 +00:00
Sam Reed
0bd50926ca Remove some unused variables
Fix typo in wfDeprecated usage

Fix some more unreachable code
2011-04-16 11:17:14 +00:00
Sam Reed
5cdff32cd1 Followup r86169, move unreachable debug statement 2011-04-16 11:11:49 +00:00