Sam Reed [Tue, 19 Jan 2010 15:23:59 +0000 (15:23 +0000)]
Pass parser by reference on line 3344 for bug 22154 extension broken
(line 3351 passes by reference
Aaron Schulz [Tue, 19 Jan 2010 08:47:48 +0000 (08:47 +0000)]
Don't show empty edit box for invalid sections requested by users who cannot edit
Tim Starling [Tue, 19 Jan 2010 02:36:33 +0000 (02:36 +0000)]
In LanguageConverter:
* Rewrote convertArray() as an RD parser (with inline tokenizer) as suggested on CR r60986. Fixes unclosed rule issue (with parser test). Fixes O(N^2) timing.
* Removed $this->mMarkup abstraction. Life is complicated enough as it is.
* Replaced a couple of instances of explode() with StringUtils::explode(), limited element count in a couple more.
In ConverterRule:
* Removed mConvTable initialisation from the constructor, unnecessary
* Optimised the "-{xxx}-" tight loop by replacing function calls such as count() and in_array() with language constructs such as isset(). Reduced execution time from 356us to 275us.
* Cached $varsep_pattern for further reduction to 243us.
* A couple more parseFlags() hacks brings it back to 230us.
* Split out $this->mVariantFlags from $this->mFlags. Rearranged flag detection into a foreach/switch to avoid unnecessary isset() calls. 189us.
* Added a special-case optimisation to generateConvTable() for the case where there are no tables defined inline in the article. 116us.
* Fixed bug from r37499: "!R || !N" is always true since they are mutually exclusive, "!R && !N" was intended (with parser test).
* Fixed E_NOTICE from "-{N|foo}-"
Roan Kattouw [Tue, 19 Jan 2010 00:58:12 +0000 (00:58 +0000)]
Update js2stopgap.min.js for at least r61137 and r61075
Raimond Spekking [Mon, 18 Jan 2010 22:22:44 +0000 (22:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-18 22:00 UTC)
Max Semenik [Mon, 18 Jan 2010 20:54:43 +0000 (20:54 +0000)]
Factored MySQL-specific munging out of Language::stripForSearch() to DatabaseMysql. This will also allow other backends to provide seamlessly their own munging algorithms in the future.
Alexandre Emsenhuber [Mon, 18 Jan 2010 19:05:41 +0000 (19:05 +0000)]
* (bug 21936) When a revision has been patrolled, there's now a link back to the article
* Break lines at 80 chars in RELEASE-NOTES
Max Semenik [Mon, 18 Jan 2010 17:54:37 +0000 (17:54 +0000)]
rv bit accidentally committed in r61180
Chad Horohoe [Mon, 18 Jan 2010 16:18:12 +0000 (16:18 +0000)]
Tweak __call failure text again
Jure Kajzer [Mon, 18 Jan 2010 15:34:26 +0000 (15:34 +0000)]
removed obsolete search term validation used in validation
Chad Horohoe [Mon, 18 Jan 2010 13:02:39 +0000 (13:02 +0000)]
Fix stupid r61199, unrelated changes checkin
Chad Horohoe [Mon, 18 Jan 2010 12:56:44 +0000 (12:56 +0000)]
Add bug #
Aryeh Gregor [Mon, 18 Jan 2010 01:30:41 +0000 (01:30 +0000)]
Strip some microdata attributes when invalid
Aryeh Gregor [Mon, 18 Jan 2010 01:30:29 +0000 (01:30 +0000)]
Style fixes to Sanitizer and Parser
All parser tests pass, no functional change.
Aaron Schulz [Mon, 18 Jan 2010 00:58:22 +0000 (00:58 +0000)]
* EditPageNoSuchSection hook
* Added message to bad section error for reviewed pages
* A few tiny cleanups
Aryeh Gregor [Mon, 18 Jan 2010 00:14:47 +0000 (00:14 +0000)]
Code clarity tweak
Aryeh Gregor [Mon, 18 Jan 2010 00:08:13 +0000 (00:08 +0000)]
Add some microdata parser tests
Alexandre Emsenhuber [Sun, 17 Jan 2010 21:02:03 +0000 (21:02 +0000)]
Per ^demon, follow-up r61173: remove useless "@return nothing"
Max Semenik [Sun, 17 Jan 2010 20:47:23 +0000 (20:47 +0000)]
Ran stylize.php on DatabaseSqlite
Jure Kajzer [Sun, 17 Jan 2010 20:42:54 +0000 (20:42 +0000)]
Fixed error suppressing suggested in r58559 by Tim. Also fixed some warnings and bugs in Oracle abstraction.
Raimond Spekking [Sun, 17 Jan 2010 19:43:17 +0000 (19:43 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-17 19:30 UTC)
Max Semenik [Sun, 17 Jan 2010 18:25:44 +0000 (18:25 +0000)]
Follow-up to r60744: one more const != $var <--> $var != const switch
Alexandre Emsenhuber [Sun, 17 Jan 2010 16:34:22 +0000 (16:34 +0000)]
Fix some doxygen warnings
Platonides [Sun, 17 Jan 2010 16:00:36 +0000 (16:00 +0000)]
Follow up r59331.
*Check for false on $rev->getText()
*Use prefixed title on the messages.
*Add --show-private option to bypass revision delete.
Platonides [Sun, 17 Jan 2010 15:35:14 +0000 (15:35 +0000)]
Avoid r60976 breakage of unexpected line breaks inside maybeHelp
Max Semenik [Sun, 17 Jan 2010 13:35:26 +0000 (13:35 +0000)]
Updated link to docs
Aryeh Gregor [Sun, 17 Jan 2010 01:47:44 +0000 (01:47 +0000)]
Use getTitle() instead of mTitle
Might prevent fatal errors caused by r61071, as suggested by code review
there.
Shinjiman [Sun, 17 Jan 2010 00:48:33 +0000 (00:48 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Chad Horohoe [Sun, 17 Jan 2010 00:18:25 +0000 (00:18 +0000)]
(bug 22122) __call() bug check outputs incorrect version.
Platonides [Sat, 16 Jan 2010 23:34:44 +0000 (23:34 +0000)]
Readd line mistakenly removed on r61150
Platonides [Sat, 16 Jan 2010 23:27:55 +0000 (23:27 +0000)]
Bug 19996 (backend hooks) Finally adding the four hooks.
Siebrand Mazeland [Sat, 16 Jan 2010 17:44:18 +0000 (17:44 +0000)]
Minor tweaks: reduce use of Title Case, consistent use of "IP address", line breaks after sensence for translators.
Michael Dale [Sat, 16 Jan 2010 17:42:04 +0000 (17:42 +0000)]
* added inline section edit to wikiEditor ( using js2 / mwEmbed conventions )
** added "loaders" to "WikiEditor" and UsabilityInitiative core js
** added >= 1.17 script include calls
* some general mwEmbed loader fixes (around loadDone )
* fixed $j.cookie jquery wrapping
* more jsClassLoader clean up.
* unified wgJSAutoloadLocalClasses var
Raimond Spekking [Sat, 16 Jan 2010 16:50:25 +0000 (16:50 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-16 16:30 UTC)
Rotem Liss [Sat, 16 Jan 2010 15:37:59 +0000 (15:37 +0000)]
Localization update for he.
Chad Horohoe [Sat, 16 Jan 2010 15:35:46 +0000 (15:35 +0000)]
Followup r61083,r61084: add RELEASE-NOTES entry
Alexandre Emsenhuber [Sat, 16 Jan 2010 15:02:58 +0000 (15:02 +0000)]
Fix for r60809: wrong argument name
Alexandre Emsenhuber [Sat, 16 Jan 2010 14:44:29 +0000 (14:44 +0000)]
MediaWikiBagOStuff -> SqlBagOStuff in comment, both are the same since r55079
Sam Reed [Sat, 16 Jan 2010 13:07:58 +0000 (13:07 +0000)]
* (bug 22061) API: add prop=headitems to action=parse
Patch contributed by Paul Copperman
Tobias [Sat, 16 Jan 2010 11:24:23 +0000 (11:24 +0000)]
provided option for showLogExtract to wrap result. Added log for create protected page
Aaron Schulz [Sat, 16 Jan 2010 07:18:16 +0000 (07:18 +0000)]
Made noSuchSectionPage() use mTitle
Aaron Schulz [Sat, 16 Jan 2010 03:45:39 +0000 (03:45 +0000)]
Tweaked nosuchsection messages
Chad Horohoe [Sat, 16 Jan 2010 00:11:04 +0000 (00:11 +0000)]
Bump style version for r61112
Platonides [Fri, 15 Jan 2010 23:35:50 +0000 (23:35 +0000)]
(bug 5061) Thumbnail styles in main.css and commonprint.css are too imprecise.
Use the more precise thumbcaption thumbimage and thumbinner classes for image divs on skins chick, simple and commonPrint.css
This just replicates the changes of r18303 on monobook.
Patch by Derk-Jan Hartman
Mark A. Hershberger [Fri, 15 Jan 2010 19:48:34 +0000 (19:48 +0000)]
follow up r61101, fix cut-n-paste error
Mark A. Hershberger [Fri, 15 Jan 2010 19:14:23 +0000 (19:14 +0000)]
follow up r60832 and follow up r60763
* Don't set Parser::$mTitle to random garbage.
* Remove ParserOutput::$displayTitle, make setDisplayTitle() and
getDisplayTitle() wrappers for their *TitleText() equivalents.
* Remove Parser::$mDo*Convert member variables, move test for
$mDoubleUnderScores[] directives closer to the action.
* Remove bogus "global $wgContLang".
* Use accessor to get at $mConvRuleTitle
* Fix up showtitle option in parserTests.inc
* TODO: refactor FakeConverter class away
Raimond Spekking [Fri, 15 Jan 2010 19:12:09 +0000 (19:12 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-15 19:00 UTC)
Raimond Spekking [Fri, 15 Jan 2010 18:57:29 +0000 (18:57 +0000)]
Revert r61078/r61079 for now. Throws a lot of PHP warnings at translatewiki. See CR for details
Alexandre Emsenhuber [Fri, 15 Jan 2010 18:12:13 +0000 (18:12 +0000)]
* add ForkController class to Maintenance group
* removed trailing spaces
Aryeh Gregor [Fri, 15 Jan 2010 18:00:56 +0000 (18:00 +0000)]
Add <guid> to RSS to avoid duplicates
Bug 7346. Patch by Jools Wills (buzz).
Niklas Laxström [Fri, 15 Jan 2010 17:28:40 +0000 (17:28 +0000)]
Tabs to spaces in the middle of the line
Alexandre Emsenhuber [Fri, 15 Jan 2010 16:55:00 +0000 (16:55 +0000)]
* use require_once for ProfilerStub.php, GlobalFunctions.php and Hooks.php, these files might already be loaded when reaching this point
* always use the complete path (with $IP) when loading files with require(_once)
* include AutoLoader before LocalSettings.php as we do in WebStart.php
* don't load DefaultSettings.php, it's already done by LocalSettings.php
* define MW_PHPUNIT_TEST constant
* added a description for the file
Chad Horohoe [Fri, 15 Jan 2010 14:37:19 +0000 (14:37 +0000)]
And IE 5.5 too, while we're at it.
Chad Horohoe [Fri, 15 Jan 2010 14:26:52 +0000 (14:26 +0000)]
Kill off IE50Fixes. Adds extra clutter to the head, and market share is down below 0.03% (is.gd/6jyWo).
Chad Horohoe [Fri, 15 Jan 2010 13:10:54 +0000 (13:10 +0000)]
Reference 0.4 XML schema. Lets <redirect /> validate.
Jure Kajzer [Fri, 15 Jan 2010 10:12:00 +0000 (10:12 +0000)]
Fixed fatal error by defineing a blank function in parent class
Mark A. Hershberger [Fri, 15 Jan 2010 05:56:57 +0000 (05:56 +0000)]
follow-up r60811 clean up code, write some tests for the existing uses of HttpFunctions. Still need to test background download, proxy tests, etc.
Michael Dale [Fri, 15 Jan 2010 03:10:01 +0000 (03:10 +0000)]
* puts jquery computeStyle in try catch ( un-breaks usability / js2 integration )
Aryeh Gregor [Fri, 15 Jan 2010 01:33:32 +0000 (01:33 +0000)]
Cleanup on ancient JS file that's awful anyway
Not only hardcoded browser version checks, but hardcoded browser version
checks *for NN4*. Probably a waste of time, but oh well.
Tim Starling [Fri, 15 Jan 2010 01:29:55 +0000 (01:29 +0000)]
PHP 5.3.2 might not be out until February, by which time a number of distros will probably be using PHP 5.3.1. Replacing the version number check with a direct bug #50394 check, so that distros or other users can backport the one-line fix without having to upgrade to 5.3.2.
Aryeh Gregor [Fri, 15 Jan 2010 01:16:52 +0000 (01:16 +0000)]
Merge all skins' output of opening <body> tag
This fixes a few minor discrepancies, like Vector outputting dir=""
(redundant to the one on <html>), and non-Monobook-based skins omitting
the capitalize-all-nouns class (!). This adds Html::openElement() and
refactors Html::rawElement() accordingly, so I checked that all parser
tests still pass.
I wasn't able to figure out if I broke some feature of right-floating
quickbars in the Standard skin, because I wasn't able to figure out what
the feature was in the first place. Hopefully either it works, or
nobody cares, or someone else will figure out what it was supposed to
do. (This is the stuff in getBodyOptions() in Standard.php I deleted;
I'm not sure the addition to sticky.js does what I want.)
Aryeh Gregor [Fri, 15 Jan 2010 00:55:51 +0000 (00:55 +0000)]
Remove OutputPage::{get,set}OnloadHandler()
Didn't work at all in Monobook, Modern, Vector, or any derived skin, for
who knows how long. Only one caller, which was using it to autofocus,
which is a bad idea anyway because it will cause the focus to happen too
late, often after the user has already interacted with the page. Any
legitimate callers may as well just add the onload in pure JS without
adding an attribute to the body.
Aryeh Gregor [Fri, 15 Jan 2010 00:12:39 +0000 (00:12 +0000)]
Remove body_onload, was always set false anyway
Raimond Spekking [Thu, 14 Jan 2010 20:03:51 +0000 (20:03 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-14 20:00 UTC)
Alexandre Emsenhuber [Thu, 14 Jan 2010 19:39:00 +0000 (19:39 +0000)]
* (bug 21303) Comments are no longer stripped from MediaWiki:Common.js and skin-specific JS pages (those message no longer have their wikitext variables replaced)
* Removed a trailing space in RELEASE-NOTES
Platonides [Thu, 14 Jan 2010 17:14:49 +0000 (17:14 +0000)]
(bug 19226) First line renders differently on many UI messages
Added newlines before $1 to wrapWikiMsgs of <div>s
Also fixes r61052 utf-8 screw-up on RELEASE-NOTES.
Platonides [Thu, 14 Jan 2010 16:35:35 +0000 (16:35 +0000)]
(bug 22034) use wfClientAcceptsGzip() in wfGzipHandler instead of reimplementing it.
$wgUseGzip check on wfClientAcceptsGzip() is removed since HTMLFileCache (the only wfClientAcceptsGzip() user) already checked that before calling it. This way, $wgUseGzip stays applying only for file cache, and $wgDisableOutputCompression for output handler.
Platonides [Thu, 14 Jan 2010 16:28:45 +0000 (16:28 +0000)]
Fix UTF-8 broken on r61052
Platonides [Thu, 14 Jan 2010 16:18:29 +0000 (16:18 +0000)]
* (bug 18765) Increased consistency of bold-italic markup for unbalanced quotes.
The representation of six quotes is now improved (changes the meaning of some dubious markup).
Sam Reed [Thu, 14 Jan 2010 10:11:45 +0000 (10:11 +0000)]
Fixup r61005, seems i failed at applying the patch
Mark A. Hershberger [Thu, 14 Jan 2010 05:02:24 +0000 (05:02 +0000)]
follow up r60832: Remove un-necessary test for stringiness since "" converts it.
Mark A. Hershberger [Thu, 14 Jan 2010 04:26:01 +0000 (04:26 +0000)]
Update global variable settings in preparation for background, async downloads
Aryeh Gregor [Thu, 14 Jan 2010 01:39:03 +0000 (01:39 +0000)]
Update RELEASE-NOTES to match r61037
Mark A. Hershberger [Thu, 14 Jan 2010 01:31:38 +0000 (01:31 +0000)]
follow up r61026 - use Atom by default
Mark A. Hershberger [Thu, 14 Jan 2010 00:57:59 +0000 (00:57 +0000)]
follow up r60999 - remove reference to $wgUseNormalUser
Adam Miller [Wed, 13 Jan 2010 23:10:21 +0000 (23:10 +0000)]
Removing the gradient from #page-base
Aryeh Gregor [Wed, 13 Jan 2010 21:29:47 +0000 (21:29 +0000)]
Only advertise RSS feeds by default, not Atom
Advertising both is pointless, since every feed reader in the universe
supports both. Their functionality is essentially identical. And users
might be given a choice of multiple feeds to read when there's really
only one distinct feed. Plus, it cuts a line from the <head>. The Atom
feed still exists, and you can get the <head> link back if you really
want it with $wgAdvertisedFeedTypes.
Alexandre Emsenhuber [Wed, 13 Jan 2010 21:25:03 +0000 (21:25 +0000)]
* Document a bit
* Fix some doxygen warnings
Aryeh Gregor [Wed, 13 Jan 2010 20:39:50 +0000 (20:39 +0000)]
Don't load nonexistent fix files for non-Monobook
Bug 14717. I just hardcoded "&& skin == 'monobook'" in wikibits.js. As
far as I know, no other skin actually uses fix files -- Vector, for
instance, just uses selector hacks in main-{ltr,rtl}.css as far as I
know. Using separate files is arguably a bad idea, because it
gratuitously adds extra loads, encourages style changes to fall out of
sync, etc. Plus, happily, the era of CSS fixes seems to be drawing to a
close -- Firefox 3.0, IE8, Opera 10, and all Safari and Chrome get by
fine with no fix files for any skin.
Alexandre Emsenhuber [Wed, 13 Jan 2010 20:23:14 +0000 (20:23 +0000)]
* (bug 21738) Fix for r57119: OutputPage::setSyndicated() now works again (was breaking Special:RecentChanges' feeds, ...)
Max Semenik [Wed, 13 Jan 2010 19:45:11 +0000 (19:45 +0000)]
Refactoring of Article::incViewCount(): use Database::getType() instead of $wgDBtype, and lockTables() instead of constructing SQL manually
Aryeh Gregor [Wed, 13 Jan 2010 19:42:24 +0000 (19:42 +0000)]
Reapply style fixes from r61006 to IEFixes.js
Also fixes indentation problems that seem to have cropped up somewhere.
Raimond Spekking [Wed, 13 Jan 2010 19:30:11 +0000 (19:30 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-13 19:00 UTC)
Happy-melon [Wed, 13 Jan 2010 18:28:31 +0000 (18:28 +0000)]
Make 'start' not required. As requested by ^demon on IRC...
Aryeh Gregor [Wed, 13 Jan 2010 15:47:36 +0000 (15:47 +0000)]
Keep IEFixes separate, load conditionally in JS
Per Code Review suggestion by Bryan on r60994. Saves about a kilobyte
for browsers other than IE<7 after gzipping.
Max Semenik [Wed, 13 Jan 2010 15:33:36 +0000 (15:33 +0000)]
Release notes for r61008.
Max Semenik [Wed, 13 Jan 2010 15:29:24 +0000 (15:29 +0000)]
Renamed $wgSearchMySQLTotalHits to $wgCountTotalSearchHits, since such functionality also exists in SearchSqlite. No migration needed, as it was added in 1.16.
Bryan Tong Minh [Wed, 13 Jan 2010 14:28:48 +0000 (14:28 +0000)]
Upload license preview now uses the API instead of action=ajax
Jack Phoenix [Wed, 13 Jan 2010 13:17:19 +0000 (13:17 +0000)]
JavaScript cleanup: add spacing, missing braces, use single quotes instead of double quotes where appropriate and fix some comparisons
Sam Reed [Wed, 13 Jan 2010 13:14:02 +0000 (13:14 +0000)]
* (bug 16281) Show copyright system message on special pages
Patch by Jools Wills
Mark A. Hershberger [Wed, 13 Jan 2010 04:58:02 +0000 (04:58 +0000)]
add in session download script
Mark A. Hershberger [Wed, 13 Jan 2010 02:41:58 +0000 (02:41 +0000)]
follow-up r60832: make sure $t always ends up a Title.
Aryeh Gregor [Tue, 12 Jan 2010 23:36:02 +0000 (23:36 +0000)]
Merge IEFixes.js into wikibits.js
Not actually tested, but it should theoretically work fine. This
previously wasn't getting loaded for skins other than Monobook, Modern,
and Vector, and each one had separate code to load it.
I also removed <meta http-equiv="imagetoolbar" content="no" />. This
was added by Gabriel Wicke without explanation as part of the original
davinci.pt back in r2786, in March 2004. As far as I can tell, it
disables some minor feature of IE6 for some reason. I assume it can be
removed completely at this point. If not, it should be readded without
the conditional comment, which is probably unnecessary.
Mark A. Hershberger [Tue, 12 Jan 2010 23:05:41 +0000 (23:05 +0000)]
follow-up r60986: Revert earlier test change - philip showed me the error of my ways.
Tim Starling [Tue, 12 Jan 2010 22:57:04 +0000 (22:57 +0000)]
Per CR comments on r59593: use binary transparency for texvc by default. My testing indicates that it looks OK as long as the background colour is around #ccc or brighter.
Philip Tzou [Tue, 12 Jan 2010 22:02:00 +0000 (22:02 +0000)]
follow-up r60986. fix for parser test failed.
Alexandre Emsenhuber [Tue, 12 Jan 2010 21:49:47 +0000 (21:49 +0000)]
document a bit
Philip Tzou [Tue, 12 Jan 2010 20:54:26 +0000 (20:54 +0000)]
1. Add a new feature to LanguageConverter, for supporting nested using of manual convert syntax like "-{-{}-}-".
2. Fixed a little bug find in getURLVariant().
Bryan Tong Minh [Tue, 12 Jan 2010 19:43:03 +0000 (19:43 +0000)]
Fix regression from r60593: The title attribute for links to NS_MEDIA titles no longer contains the namespace as before.
Passed 559 of 559 tests (100%)... ALL TESTS PASSED!
Raimond Spekking [Tue, 12 Jan 2010 19:22:39 +0000 (19:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-12 19:00 UTC)