Tyler Anthony Romeo [Tue, 31 Jul 2012 19:37:01 +0000 (15:37 -0400)]
Added PHP complement for mw.Time.
Figured since a JS Timestamp class was being implemented
it might be appropriate to create a complementary PHP
Timestamp class. Much of code is taken from wfTimestamp().
Note: Another change (I53dcf547) is attempting a related
issue. Not sure how much of scope overlap there is.
Change-Id: I68eb9f27eebe80df757187f634392e1bcba5551f
Signed-off-by: Tyler Romeo <tylerromeo@gmail.com>
Kaldari [Fri, 31 Aug 2012 00:06:33 +0000 (00:06 +0000)]
Merge "Revert "Setting up a way to have uploading by URL, but not on Special:Upload""
Kaldari [Thu, 30 Aug 2012 23:59:52 +0000 (23:59 +0000)]
Revert "Setting up a way to have uploading by URL, but not on Special:Upload"
This reverts commit
8c6c29b3fc5db93c46bdd73b48f1ff5b4edad25c
I erroneously assumed there was a practical reason why
wgAllowCopyUploads was turned off on Commons, i.e. it was
too easy to abuse, causing too many copyvios, etc. I didn't
realize that the reason it was turned off was purely
technical (since the apaches on the cluster have no
external internet access). So there's no reason we need a
separate config.
Change-Id: I293a59d756335909898fd647edd6eddb68f06e17
Daniel Friesen [Sun, 12 Aug 2012 09:23:50 +0000 (02:23 -0700)]
Fix up the preferred way to specify mw.util.$content
- Setting a .mw-body class is the preferred way for $content to be defined
- You can set an extra .mw-body-primary if you use multiple .mw-body classes or for some legacy reasons .mw-body is at a different depth than the content area
- No extensions appear to be using util.$content in a way that would imply they want the body text rather than the overall content area
- Anyone that actually needs the body text can use #mw-content-text.
Change-Id: Ic7b756f139047e4100fcab8f63a968d45ca2b2fe
Catrope [Thu, 30 Aug 2012 21:09:43 +0000 (21:09 +0000)]
Merge "Add and update some missing release notes for rl modules."
Aaron Schulz [Thu, 30 Aug 2012 21:06:14 +0000 (21:06 +0000)]
Merge "Make LinksUpdate run without a db transaction."
Demon [Thu, 30 Aug 2012 20:58:07 +0000 (20:58 +0000)]
Merge "[FileBackend] Improved stat caching by reducing cache salting."
Krinkle [Thu, 30 Aug 2012 20:51:56 +0000 (20:51 +0000)]
Merge "Addressing problems with jquery.badge mentioned at I0f5e7541"
Timo Tijhof [Thu, 30 Aug 2012 20:51:39 +0000 (22:51 +0200)]
Add and update some missing release notes for rl modules.
* QUnit v1.9.0
* jQuery UI 1.8.23
* New: jquery.badge
Change-Id: I6b3de9b0e02ea7c4931ebf3f3a3b85bf76407f02
Aaron [Thu, 30 Aug 2012 19:47:19 +0000 (12:47 -0700)]
[FileBackend] Improved stat caching by reducing cache salting.
Change-Id: Ieec6515fcf1c2f147b52eceec1f6c55a681115c5
Kaldari [Thu, 16 Aug 2012 21:22:45 +0000 (14:22 -0700)]
Addressing problems with jquery.badge mentioned at I0f5e7541
Making sure variable types are consistant, fixing global vars,
various style fixes, etc.
Change-Id: I2f30fe07078aa3cadd730b0d6f199d037f2a4612
Demon [Thu, 30 Aug 2012 20:20:59 +0000 (20:20 +0000)]
Merge "Update migrateUserGroup to deal with primary key issue"
Translation updater bot [Thu, 30 Aug 2012 19:44:22 +0000 (19:44 +0000)]
Merge "Localisation updates from translatewiki.net."
Krinkle [Thu, 30 Aug 2012 19:36:15 +0000 (19:36 +0000)]
Merge "(bug 36329) Fix accesskey tooltip for Firefox 14 on Mac"
Minh Nguyễn [Sat, 28 Apr 2012 22:30:22 +0000 (22:30 +0000)]
(bug 36329) Fix accesskey tooltip for Firefox 14 on Mac
Should use "ctrl-option-" prefix
Change-Id: I87463fc6043fb17cab70956f65fd9da3cdd7477d
Translation updater bot [Thu, 30 Aug 2012 19:33:15 +0000 (19:33 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ia32bb1239b6b88c757b04a748bc3d9f69cc6be36
Demon [Thu, 30 Aug 2012 19:26:03 +0000 (19:26 +0000)]
Merge "[FileBackend] Improved getLocalCopy() performance for Swift."
Aaron [Thu, 30 Aug 2012 19:17:28 +0000 (12:17 -0700)]
[FileBackend] Improved getLocalCopy() performance for Swift.
* This eliminates HEAD requests to speed up concatenate() operations (by ~9 seconds for 300 chunks for wmf).
Change-Id: I43456bd59eeb7943e66cae9c1e42dc410c2a8daf
Catrope [Thu, 30 Aug 2012 18:57:34 +0000 (18:57 +0000)]
Merge "(bug 39273) add diff support to LivePreview"
Catrope [Thu, 30 Aug 2012 18:13:47 +0000 (18:13 +0000)]
Merge "[FileBackend] Made TempFSFile use wfRandomString() and be more random."
Aaron [Thu, 30 Aug 2012 18:05:52 +0000 (11:05 -0700)]
[FileBackend] Made TempFSFile use wfRandomString() and be more random.
Change-Id: I5bfff8cfb9d1c786490f7539a6cdb47e36d88cc1
Catrope [Thu, 30 Aug 2012 17:50:55 +0000 (17:50 +0000)]
Merge "[FileBackend] Reduce backend sync errors a bit by aborting operations more."
Aaron Schulz [Thu, 30 Aug 2012 17:16:33 +0000 (17:16 +0000)]
Merge "clear magicword cache before testing cleanSig"
Aaron [Thu, 30 Aug 2012 17:10:50 +0000 (10:10 -0700)]
[FileBackend] Reduce backend sync errors a bit by aborting operations more.
Change-Id: Iedb8d7e1f95c971dbb9f9baed67de047753ab40d
Siebrand [Thu, 30 Aug 2012 15:07:26 +0000 (15:07 +0000)]
Merge "Fix the incorrect nesting"
Daniel Kinzler [Thu, 30 Aug 2012 10:37:41 +0000 (10:37 +0000)]
Merge "Added default implmentation of instanceProvider to GenericArrayObjectTest"
Antoine Musso [Thu, 30 Aug 2012 09:56:21 +0000 (11:56 +0200)]
tests: Wraper to set/disable $wgHTML5 in HtmlTest
Would let us easily set $wgHtml5 in our tests.
Change-Id: Iacf38c2961cbbb9cc58cd45bba34f10ee5688605
Nikerabbit [Thu, 30 Aug 2012 07:54:27 +0000 (07:54 +0000)]
Merge "Add cache/ to .gitignore"
Catrope [Thu, 30 Aug 2012 05:21:32 +0000 (05:21 +0000)]
Merge "Added explicit DB flags for Revision loading calls."
Catrope [Thu, 30 Aug 2012 05:18:55 +0000 (05:18 +0000)]
Merge "[FileBackend] Made getLocalCopy() handle long file names better."
Aaron Schulz [Thu, 30 Aug 2012 05:06:16 +0000 (22:06 -0700)]
[FileBackend] Made getLocalCopy() handle long file names better.
Change-Id: I54d7c610dba8cb3e7bc0ef4d4bfbb2327e63db07
Aaron Schulz [Thu, 30 Aug 2012 03:04:30 +0000 (20:04 -0700)]
Added explicit DB flags for Revision loading calls.
Change-Id: Ie90d4197ad7a16009c96273eeae1a658678a8200
Vitaliy Filippov [Fri, 25 May 2012 10:41:53 +0000 (14:41 +0400)]
Bug 20595 - Fixed incr()/decr() functions for some caches.
* Preserve TTL in objectcache incr() method for APC, XCache and DBA.
Do not serialize numeric values, since it breaks the counters.
* Also gave some DBABagOStuff functions explicit visibility.
Change-Id: I13856832f418c843afc8e42a6d77686331f6cb41
Timo Tijhof [Wed, 29 Aug 2012 22:23:47 +0000 (00:23 +0200)]
Add cache/ to .gitignore
On fenari we've always got:
> Untracked files:
> (use "git add <file>..." to include in what will be committed)
>
> cache/l10n/
> cache/message-timestamp
And on my localhost also several files and stuff extensions have
put in there. Might as well ignore cache entirely instead of
just .cdb files.
Change-Id: I3c594a0f746341687c2a35eed5dc2c2b91e68265
Kaldari [Wed, 29 Aug 2012 22:00:52 +0000 (22:00 +0000)]
Merge "(Bug 38606) Set log_page on uploads to the page_id of its description page"
Platonides [Wed, 29 Aug 2012 21:23:27 +0000 (23:23 +0200)]
(Bug 38606) Set log_page on uploads to the page_id of its description page
This change updates the log_page in a second step after performing
the edit, which is not terribly elegant, but is very robust.
Change-Id: I9015230df772d049b2879fb34914c68183f1da05
Rob Moen [Wed, 29 Aug 2012 21:20:02 +0000 (14:20 -0700)]
Move cancel link out of editHelp span and wrap in 'cancelLink' span.
Change-Id: I203a3eaf2f171bba81e11806e3632c2bc012458c
Krinkle [Wed, 29 Aug 2012 20:56:54 +0000 (20:56 +0000)]
Merge "Revert "Revert "Update jQuery UI to 1.8.23"""
Krinkle [Wed, 29 Aug 2012 20:56:43 +0000 (20:56 +0000)]
Revert "Revert "Update jQuery UI to 1.8.23""
Problems solved.
This reverts commit
731219d5d1c82eb199eb9808948740555d2ebe14
Catrope [Wed, 29 Aug 2012 20:53:04 +0000 (20:53 +0000)]
Merge "Added post-commit callback support to DB classes."
Siebrand [Wed, 29 Aug 2012 20:40:28 +0000 (20:40 +0000)]
Merge "(bug 39771) Regression in Ie349afa5 broke plurals in JavaScript"
Aaron Schulz [Wed, 29 Aug 2012 20:39:18 +0000 (20:39 +0000)]
Merge "Rewrite the ThumbnailImage constructor to take parameter array"
Niklas Laxström [Wed, 29 Aug 2012 20:30:15 +0000 (20:30 +0000)]
(bug 39771) Regression in Ie349afa5 broke plurals in JavaScript
Change-Id: Iee4e3bdca0e72292d6d431703f0f589653f68f64
jarry1250 [Wed, 29 Aug 2012 20:09:36 +0000 (21:09 +0100)]
Rewrite the ThumbnailImage constructor to take parameter array
This is required for a full resolution of bug #32987. Per Brion's
commentary on that bug, for the long-term preservation of
sanity we can't just keep adding arguments to the constructor
whenever a new feature is added.
Instead, we can have an array of optional parameters. At the moment,
this situation is a bit iffy for width and height: we should really
specify either a default height / width or error if one is not found.
I'm open to ideas on that, but it's not a big deal since nothing
uses the new syntax yet. When that is agreed, I'll convert all usage
in core and maybe some extensions too.
Change-Id: I116f71aeb90ef7c786f0874b150c7bcca527e106
Aaron [Wed, 29 Aug 2012 19:32:47 +0000 (12:32 -0700)]
Added post-commit callback support to DB classes.
* This can allow for autocommit job queue insertion without
breaking existing transactions (which currently happens since
job queue insert does begin/commit).
Change-Id: I021d4a73635168c05bbc1068912c2c6dbdf9cdc4
Alexandre Emsenhuber [Wed, 29 Aug 2012 19:36:37 +0000 (21:36 +0200)]
Fix wfGetCaller() and wfFormatStackFrame() documentation
These two functions cannot return a boolean.
Also simplified wfGetCaller() to not use the $caller local
variable which is totally useless in that case.
Change-Id: I81707a8292afc1829921b58cdaae81b3147ee3cb
Catrope [Wed, 29 Aug 2012 19:30:17 +0000 (19:30 +0000)]
Merge "Move copyright warning to directly above buttons."
Translation updater bot [Wed, 29 Aug 2012 19:25:50 +0000 (19:25 +0000)]
Merge "Localisation updates from translatewiki.net."
Catrope [Wed, 29 Aug 2012 19:25:13 +0000 (19:25 +0000)]
Merge "Setting up a way to have uploading by URL, but not on Special:Upload"
Translation updater bot [Wed, 29 Aug 2012 19:19:12 +0000 (19:19 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I0596ce4ee5480cce947a1c8c89e2acc46c182dcd
MatmaRex [Thu, 23 Aug 2012 22:56:50 +0000 (00:56 +0200)]
(bug 39273) add diff support to LivePreview
Now both "Show preview" and "Show changes" result in an AJAX call;
previously, "Show changes" would just reload the form as usual, and
LivePreview wouldn't handle the #wikiDiff element at all, which resulted
in both the new preview and stale diff being shown.
We load the diff styles using mw.loader.load if necessary (which will
probably be basically always).
Change-Id: Iaf9edf947e019ec7fa949d664b46b88161235b41
jeroendedauw [Wed, 29 Aug 2012 17:52:13 +0000 (19:52 +0200)]
Added default implmentation of instanceProvider to GenericArrayObjectTest
Change-Id: I8d77c03b90ddca226c4bff18e42c53980bf9a861
Siebrand [Wed, 29 Aug 2012 17:48:44 +0000 (17:48 +0000)]
Merge "Revert "Revert "jQuery 1.8"""
awjrichards [Wed, 29 Aug 2012 16:54:18 +0000 (16:54 +0000)]
Merge "New hook ApiMain::onException"
Max Semenik [Fri, 24 Aug 2012 23:57:54 +0000 (03:57 +0400)]
New hook ApiMain::onException
Allows custom logging of API errors
Change-Id: If8841c33998dff96448a7eb8dbe95d68119e068f
Siebrand [Wed, 29 Aug 2012 16:16:57 +0000 (16:16 +0000)]
Merge "Fixed fallback behaviour for plural rules"
Siebrand [Wed, 29 Aug 2012 15:12:59 +0000 (15:12 +0000)]
Merge "(bug 38556) Add header and footer messages to MediaWiki's info action"
madman [Mon, 27 Aug 2012 15:39:03 +0000 (15:39 +0000)]
(bug 38556) Add header and footer messages to MediaWiki's info action
Change-Id: I5d23d83dabc1f642d2b96a17aabd6b6fc9ece399
Antoine Musso [Wed, 29 Aug 2012 15:01:02 +0000 (17:01 +0200)]
raise filerepo tests timeout to 10sec
'@group medium' instructs PHPUnit to wait up to 10 seconds for the test
to complete. That would save us from false positive caused by high disk
I/O on the continuous integration server.
Change-Id: Id11c3ed1879705f806d262dc8090ef2fb432ed36
Krinkle [Wed, 29 Aug 2012 14:10:16 +0000 (14:10 +0000)]
Revert "Revert "jQuery 1.8""
This reverts commit
4dd2c82ff4b2178620cb7b3ce01db713101ca2eb
As mentioned (on bug 39572) in the mean time, this was not related to the jQuery update. The problems were related to abuse of jsMsg to prepend arbitrary content to the top of the page.
Siebrand [Wed, 29 Aug 2012 13:40:22 +0000 (13:40 +0000)]
Merge "Use ImageGallery directly in SpecialUpload::getDupeWarning()"
daniel [Wed, 29 Aug 2012 08:42:47 +0000 (10:42 +0200)]
clear magicword cache before testing cleanSig
Without this, some other synonym for "SUBST" may be used by the parser,
because the MagicWord got cached while another content language was active
in some other test.
Change-Id: I89dc2173f6a27dcd16b0548b06070ac4244fd3cb
Tim Starling [Tue, 28 Aug 2012 05:54:40 +0000 (15:54 +1000)]
Fixed fallback behaviour for plural rules
Fallbacks didn't work at all for the new plural rule system. I fixed it
by moving the getPluralRules() and getCompiledPluralRules() calls near
to the readPHPFile() calls, before merging is done. Then I factored out
the resulting code to readSourceFilesAndRegisterDeps().
* Removed pluralRules from mergeableMapKeys, it isn't one
* Added compiledPluralRules to allKeys so that it will be merged
* When a language is not present in the CLDR XML files, return null from
getPluralRules() and getCompiledPluralRules() so that the fallback
rules won't be overridden with an empty array. Normalised it back to
an empty array in the unlikely event that there is no plural data in
the fallback sequence at all, even in English.
* Fixed private function, "protected" is the way to say private here.
Change-Id: I3a008ef7f6ed7aaa15ad25ad796f7a2b8f827fa2
Niklas Laxström [Wed, 29 Aug 2012 07:56:14 +0000 (07:56 +0000)]
Fix the incorrect nesting
Change-Id: I326458f136e9e491f80c1f69a1154f388ed96927
Rob Moen [Wed, 29 Aug 2012 01:50:15 +0000 (18:50 -0700)]
Move copyright warning to directly above buttons.
Please see:
http://www.mediawiki.org/wiki/Micro_Design_Improvements
Change-Id: Ida02149880aae00f790cb414ae3d632aac351651
Catrope [Wed, 29 Aug 2012 00:13:57 +0000 (00:13 +0000)]
Merge "[FileBackend] Added preloadCache() so callers can trigger cache getMulti()."
Aaron Schulz [Fri, 24 Aug 2012 06:17:16 +0000 (23:17 -0700)]
[FileBackend] Added preloadCache() so callers can trigger cache getMulti().
Change-Id: I2a30b4bfc16b4303abcb1f71206234dd2e0403af
Catrope [Tue, 28 Aug 2012 23:53:26 +0000 (23:53 +0000)]
Merge "Reduced some master queries via Revision::READ_NORMAL."
Catrope [Tue, 28 Aug 2012 23:51:50 +0000 (23:51 +0000)]
Merge "Added new mw message 'editpage-head-copy-warn' to EditPage header."
Krinkle [Tue, 28 Aug 2012 22:00:38 +0000 (22:00 +0000)]
Merge "Work around preg_replace_callback() issue in CSSJanus"
Siebrand [Tue, 28 Aug 2012 21:53:58 +0000 (21:53 +0000)]
Merge "Follow up to dirname( __FILE__ ) clean up"
Hoo man [Tue, 28 Aug 2012 21:20:43 +0000 (23:20 +0200)]
Follow up to dirname( __FILE__ ) clean up
Remove a trailing whitespace added by me in dirname( __FILE__ )
clean up and add some comments to the PHP version checks (they
can't use __DIR__ as they have to run in older PHP versions.
Change-Id: I6a7e8cb7dbf384d91dda4d0ecbef7ce588bc3073
Krinkle [Tue, 28 Aug 2012 21:16:01 +0000 (21:16 +0000)]
Merge "Adding ResourceLoader module "jquery.jStorage""
Catrope [Tue, 28 Aug 2012 21:13:54 +0000 (21:13 +0000)]
Merge "[FileJournal] Made getMasterDB() reuse the DB handle."
Rob Moen [Tue, 28 Aug 2012 20:24:21 +0000 (13:24 -0700)]
Added new mw message 'editpage-head-copy-warn' to EditPage header.
New copyright warning is to be just above the edit box.
This message is intended to be optional and locally customized.
Similar to editpage-tos-summary.
See Micro Improvements for more information.
http://www.mediawiki.org/wiki/Micro_Design_Improvements
Change-Id: Ifbd842ebef8775630d97491a3c735e046df5d0df
Catrope [Tue, 28 Aug 2012 21:13:05 +0000 (21:13 +0000)]
Merge "[FileBackend] Made Swift clear the auth cache on certain HTTP errors."
Catrope [Tue, 28 Aug 2012 21:12:46 +0000 (21:12 +0000)]
Merge "[FileBackend] Bumped Swift auth caching TTL."
Catrope [Tue, 28 Aug 2012 21:12:23 +0000 (21:12 +0000)]
Merge "[FileBackend] Reduced stat calls when using the multiwrite backend."
Catrope [Tue, 28 Aug 2012 21:11:27 +0000 (21:11 +0000)]
Merge "[FileBackend] Use strcmp() for listing comparisons."
Krinkle [Tue, 28 Aug 2012 20:58:41 +0000 (20:58 +0000)]
Merge "(bug 39680) Convert valign to CSS vertical-align"
Catrope [Tue, 28 Aug 2012 19:35:27 +0000 (12:35 -0700)]
Work around preg_replace_callback() issue in CSSJanus
As reported in bug 38294, CSSJanus returns an empty string for some
input. This seems to be caused by preg_replace_callback() returning
null which, according to the PHP docs, happens "in case of error". Of
course there's no way to figure out what the error was :S
Work around this by checking for a null return value
Change-Id: I5db952bc32f73b94ac13e449d9aa1f8693602dbd
Translation updater bot [Tue, 28 Aug 2012 19:35:05 +0000 (19:35 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ib471477326cecc9fdab5c0482bfaffb0fa2ce94f
Aaron Schulz [Tue, 28 Aug 2012 19:17:48 +0000 (19:17 +0000)]
Merge "Removed unmatched commits in Job class."
Aaron Schulz [Tue, 28 Aug 2012 17:13:00 +0000 (17:13 +0000)]
Merge "Moved warning stuff into MWDebug class."
Aaron Schulz [Tue, 28 Aug 2012 17:00:22 +0000 (17:00 +0000)]
Merge "Validate number input for {{PLURAL}}"
Alexandre Emsenhuber [Sat, 25 Aug 2012 11:09:46 +0000 (13:09 +0200)]
Moved warning stuff into MWDebug class.
- Group common code in one instead of doing checks one
time in GlobalFunctions.php and another time in Debug.php
- Remove the code catching the fact that a warning is due
to a deprecation warning, no longer needed
- Pass the caller offset from wfDeprecated() to
MWDebug::deprecated(); this was breaking deprecation
notices for global objects.
- Changed PHP error level for deprecation notices (when
$wgDevelopmentWarnings is set to true) from E_USER_NOTICE
to E_USER_DEPRECATED since we now require PHP 5.3+
- Added E_USER_DEPRECATED to wfSuppressWarnings() and
removed the check for the E_DEPRECATED constant being set
now that we require PHP 5.3+
- Fixed MWDebugTest by calling wfSuppressWarnings() and
wfRestoreWarnings() in setUp() and tearDown()
Change-Id: I6810b57c90d384de55a2cf177047767cdb734f79
jeroendedauw [Tue, 28 Aug 2012 13:07:19 +0000 (15:07 +0200)]
Fixed type hint docs
Change-Id: I637f11e9ac2a42865649c10ffcb96bdebf1b55eb
Nikerabbit [Tue, 28 Aug 2012 06:18:45 +0000 (06:18 +0000)]
Merge "Add CLDRPluralRuleError, added in parent commit, to the AutoLoader"
Nikerabbit [Tue, 28 Aug 2012 05:49:41 +0000 (05:49 +0000)]
Merge "Use the MWDebug class to display debug log back in the request."
Tim Starling [Tue, 28 Aug 2012 00:51:38 +0000 (10:51 +1000)]
Revert Uri class due to bug 39710
Revert
94f623363beb00a7a211e8f8f1f39bc12b4713ed. Apparently all
ReverseChronologicalPager subclasses were broken by the unexplained
interface change in wfArrayToCgi(): changing the interpretation of
null array values from "omit this key" to "include this key with no
value". The function has always been called with the former
interpretation, that's why the special case was in there.
Also reverted dependent changes
4b517fa and part of
3d97704.
Change-Id: I41dadbde5d0e0e4c54cc76bfc13c263c15c73828
Aaron Schulz [Tue, 28 Aug 2012 00:01:05 +0000 (00:01 +0000)]
Merge "Allow array condition for Database::conditional"
Aaron Schulz [Mon, 27 Aug 2012 23:42:25 +0000 (23:42 +0000)]
Merge "Use numParams() where possible."
Siebrand Mazeland [Mon, 27 Aug 2012 23:38:19 +0000 (01:38 +0200)]
Use numParams() where possible.
Change-Id: I2ba4fb7dad599ccd04fe69ab033ff72c1bacfe3e
Aaron Schulz [Mon, 27 Aug 2012 23:31:48 +0000 (23:31 +0000)]
Merge "(bug 39635) PostgreSQL has no LOCK IN SHARE MODE"
Aaron [Mon, 27 Aug 2012 23:20:56 +0000 (16:20 -0700)]
Reduced some master queries via Revision::READ_NORMAL.
* Also normalized 0 => false for the rev ID parameter in some places.
* Broke some long lines and shorted a variable name in Skin.php.
Change-Id: I6645315699ec7670ae22aa1dbf787d75d6e6b7ec
Aaron Schulz [Mon, 27 Aug 2012 22:08:14 +0000 (22:08 +0000)]
Merge "Use __DIR__ instead of dirname( __FILE__ )"
Hoo man [Mon, 27 Aug 2012 21:58:28 +0000 (23:58 +0200)]
Use __DIR__ instead of dirname( __FILE__ )
Removed left over uses of dirname( __FILE__ ) to __DIR__, even in comments.
Running the PHP version test in maintenance/Maintenance.php earlier, so that
we no longer have to stay PHP < 5.3 compatible in there.
Change-Id: I5a00bd5c6af44b7f826c4e5576a7b3de7b5026d8
Alexandre Emsenhuber [Mon, 27 Aug 2012 20:57:15 +0000 (22:57 +0200)]
Use the MWDebug class to display debug log back in the request.
- This removes the duplication of MWDebug::$debug and
OutputPage::$mDebugtext, so there's no need to store two times
the same text
- Removed OutputPage::debug() since it's no longer used
- Had to keep OutputPage::$mDebugtext because it's still
referenced by SemanticPageMaker extension
- Moved Skin::formatDebugHTML() to MWDebug::GetHTMLDebugLog()
and replaced the call in Skin::generateDebugHTML() to use it
- Also check $logonly before sending entries to the debug
toolbar in wfDebug(), for consistency
- Changed MWDebug::getDebugHTML() to also return the debug log
in an HTML comment if $wgDebugComments is set to true and
changed the location of this call to BaseTemplate::printTrail()
so that its result is the latest possible. This also includes
the debug toolbar.
- Removed MockOutputPage and related test cases since they are
no longer accurate
Change-Id: Ie0f389f8566457b1c938c627ed930040741ac9d9
jeroendedauw [Mon, 27 Aug 2012 21:46:06 +0000 (23:46 +0200)]
Added last missing @since tag to Message
Change-Id: I034ae0e5b1f19c1c28b1ecaecec69739434f699b
Siebrand [Mon, 27 Aug 2012 21:29:17 +0000 (21:29 +0000)]
Merge "Added missing @since tags to all methods"