Sam Reed [Sat, 23 Jan 2010 22:43:21 +0000 (22:43 +0000)]
Followup to r61436
-rakkaus:#mediawiki-i18n- [23-Jan-2010 22:40:23] PHP Notice: Undefined property: ApiQueryAllpages::$params in /www/w/includes/api/ApiQueryAllpages.php on line 62
Sam Reed [Sat, 23 Jan 2010 22:31:37 +0000 (22:31 +0000)]
Refactor array_intersect_key from ApiResult.php to GlobalFunctions.php
Niklas Laxström [Sat, 23 Jan 2010 22:30:21 +0000 (22:30 +0000)]
Log HTTP requests similar to SQL queries and other stuff
Sam Reed [Sat, 23 Jan 2010 22:26:40 +0000 (22:26 +0000)]
Add/remove whitelines to increase readability in API code files
Sam Reed [Sat, 23 Jan 2010 21:28:27 +0000 (21:28 +0000)]
Normalise check for filterredir in Allpages to that of backlinks
Add a couple of blank lines
Sam Reed [Sat, 23 Jan 2010 21:25:25 +0000 (21:25 +0000)]
filterredir is mutually exclusive (one value)
Change 2nd if for else if in both 1st and 2nd queries
Raimond Spekking [Sat, 23 Jan 2010 20:39:00 +0000 (20:39 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-23 20:15 UTC)
Niklas Laxström [Sat, 23 Jan 2010 20:15:39 +0000 (20:15 +0000)]
Use Html::element instead of Xml::element
It produces nicer output and has no braindeadiness with empty contents
Niklas Laxström [Sat, 23 Jan 2010 20:11:42 +0000 (20:11 +0000)]
Part 2 at solving conflict with vector and js edit
Add OutputPage::includeJQuery() for loading the jQuery currently shipped
with core. Extension can use this function to avoid loading it multiple
times. No support for plugins etc.
Changes Translate extension to use that function, restored compatability
with 1.15 for at least this part of code.
Alexandre Emsenhuber [Sat, 23 Jan 2010 20:07:17 +0000 (20:07 +0000)]
* Document a bit
* Fix some doxygen warnings
* Use spaces instead of tabs in the middle of lines
Alexandre Emsenhuber [Sat, 23 Jan 2010 19:00:56 +0000 (19:00 +0000)]
Avoid "PHP Warning: Division by zero in maintenance/mcc.php on line 92" if there's only a single server
Sam Reed [Sat, 23 Jan 2010 18:28:49 +0000 (18:28 +0000)]
RELEASE-NOTES for r61421
Roan Kattouw [Sat, 23 Jan 2010 17:48:02 +0000 (17:48 +0000)]
API: Fix bug where deprecated boolean parameters would always trigger the deprecated warning.
Bryan Tong Minh [Sat, 23 Jan 2010 15:27:53 +0000 (15:27 +0000)]
(bug 19528) Revert 55749: "according to the XSLT 1.0 spec, the MIME type should be text/xml or application/xml. In XSLT 2.0, it is application/xslt+xml. Either way, text/xsl is wrong." The mime type text/xsl is the only one supported by all modern browsers.
Sam Reed [Sat, 23 Jan 2010 15:25:14 +0000 (15:25 +0000)]
Stylise on ApiParse.php
Alexandre Emsenhuber [Sat, 23 Jan 2010 15:24:44 +0000 (15:24 +0000)]
* $fname -> __METHOD__
* some style fixes
Roan Kattouw [Sat, 23 Jan 2010 15:09:16 +0000 (15:09 +0000)]
Fix indentation in r61407. PLEASE don't use spaces for indentation, always use tabs.
Roan Kattouw [Sat, 23 Jan 2010 15:05:24 +0000 (15:05 +0000)]
Followup to r61412: don't use time(), we have our own function for this
Chad Horohoe [Sat, 23 Jan 2010 14:25:10 +0000 (14:25 +0000)]
Typo in comment, no such thing as wfGetFile()
Sam Reed [Sat, 23 Jan 2010 12:37:03 +0000 (12:37 +0000)]
* (bug 22240) - API: include time in siteinfo
Patch by Matthew Britton
Shinjiman [Sat, 23 Jan 2010 10:21:54 +0000 (10:21 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Mark A. Hershberger [Sat, 23 Jan 2010 06:23:18 +0000 (06:23 +0000)]
follow up r61356 -- remove global
Mark A. Hershberger [Sat, 23 Jan 2010 05:20:31 +0000 (05:20 +0000)]
follow up r61355
Alex Z [Sat, 23 Jan 2010 02:00:38 +0000 (02:00 +0000)]
Fix for r61391, which broke user JS. Use makeTitleSafe() instead of
newFromText(), use the NS_USER constant directly.
Robert Leverington [Fri, 22 Jan 2010 23:20:35 +0000 (23:20 +0000)]
Add new ISO 639-3 language code 'ltg' (Latgalian) to Names.php.
Bryan Tong Minh [Fri, 22 Jan 2010 21:37:29 +0000 (21:37 +0000)]
Fix undefined variable
Raimond Spekking [Fri, 22 Jan 2010 21:36:23 +0000 (21:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-22 21:15 UTC)
Max Semenik [Fri, 22 Jan 2010 21:30:23 +0000 (21:30 +0000)]
Special delivery for Nikerabbit: ability to connect to a SQLite db file directly, no foreplay with global settings needed.
Niklas Laxström [Fri, 22 Jan 2010 20:39:03 +0000 (20:39 +0000)]
Wrap skin specific user js addition inside Title::exists
This should help to reduce unnecessary requests, especially where action=raw is serving
uncached 404 responses in some uncommon configurations.
Max Semenik [Fri, 22 Jan 2010 20:36:26 +0000 (20:36 +0000)]
Fixed r61214: moved MySQL munging to SearchEngine, updated calls. Can we kill $doStrip now?
Alexandre Emsenhuber [Fri, 22 Jan 2010 19:58:13 +0000 (19:58 +0000)]
Fixed some doxygen warnings
Chad Horohoe [Fri, 22 Jan 2010 19:50:37 +0000 (19:50 +0000)]
Revert part of r61382, unrelated change
Chad Horohoe [Fri, 22 Jan 2010 19:48:10 +0000 (19:48 +0000)]
Clarify parameters to wfFindFile and wfLocalFile, and return caveat to the "This always returns files" comment
Alexandre Emsenhuber [Fri, 22 Jan 2010 18:43:59 +0000 (18:43 +0000)]
* Fix E_STRICT errors about functions not having same signature
* Added missing functions that are in Title but not FakeTitle
Chad Horohoe [Fri, 22 Jan 2010 18:13:18 +0000 (18:13 +0000)]
Use correct variable name
Chad Horohoe [Fri, 22 Jan 2010 18:04:40 +0000 (18:04 +0000)]
Cleanup needless code duplication
Max Semenik [Fri, 22 Jan 2010 17:57:55 +0000 (17:57 +0000)]
Removed
deadbeef from SearchSqlite
Rotem Liss [Fri, 22 Jan 2010 17:44:37 +0000 (17:44 +0000)]
Localization update for he, and rebuilding en.
Chad Horohoe [Fri, 22 Jan 2010 16:10:52 +0000 (16:10 +0000)]
Rm some unneeded $wgParser globals
Platonides [Fri, 22 Jan 2010 14:52:40 +0000 (14:52 +0000)]
Add Tom Gries per his contribution to enotif. He is credited in UserMailer.php but didn't appear in CREDITS file.
Platonides [Fri, 22 Jan 2010 14:50:34 +0000 (14:50 +0000)]
(Bug 22222) Add link to directly unwatch the page on the email notification.
Patch from Tom Gries.
Raimond Spekking [Fri, 22 Jan 2010 12:52:03 +0000 (12:52 +0000)]
Follow-up r61358: Consistent quote signs
Add new messages to maintenance script
Jure Kajzer [Fri, 22 Jan 2010 10:55:58 +0000 (10:55 +0000)]
fixed quoting typo in r61358
Sam Reed [Fri, 22 Jan 2010 10:48:57 +0000 (10:48 +0000)]
(bug 22225) - misspelt wpEdittoken -> wpEditToken in ApiEditPage
Patch By Matthew Britton
Mark A. Hershberger [Fri, 22 Jan 2010 07:55:13 +0000 (07:55 +0000)]
only once.
Mark A. Hershberger [Fri, 22 Jan 2010 07:52:55 +0000 (07:52 +0000)]
Messages for r61357
Mark A. Hershberger [Fri, 22 Jan 2010 07:50:02 +0000 (07:50 +0000)]
Follow up 61352, address TimStarling's comments.
Mark A. Hershberger [Fri, 22 Jan 2010 04:55:51 +0000 (04:55 +0000)]
follow up r61352 forgot to add the new global.
Mark A. Hershberger [Fri, 22 Jan 2010 04:37:23 +0000 (04:37 +0000)]
UploadChunks added from js2 branch. Refactored. Still needs to be
tested w/o the UI first.
Mark A. Hershberger [Fri, 22 Jan 2010 03:14:52 +0000 (03:14 +0000)]
ws only cleanup
Mark A. Hershberger [Fri, 22 Jan 2010 03:01:48 +0000 (03:01 +0000)]
stylize, message fixups.
Mark A. Hershberger [Fri, 22 Jan 2010 02:17:58 +0000 (02:17 +0000)]
follow up r61078, fixes bug 22224
Rewrite of HttpFunctions.php
Stripping async download, simple file writer stuff.
Aryeh Gregor [Fri, 22 Jan 2010 00:51:57 +0000 (00:51 +0000)]
Add disabled <datalist> support to mwsuggest
<datalist> is an HTML5 element that allows us to provide suggestions to
the browser to display with the proper format with no extra work on our
part. I got a working implementation, so I'm committing it for the
future, but the only supporting browser (Opera) has a small but fatal
flaw, so it's disabled unconditionally.
I moved around some code to separate out the <div>-specific parts from
the general code, which unfortunately makes this somewhat messy to
review. (I should probably have done it in two parts.) There aren't
supposed to be any functional changes in any browser, though, so if you
find any, either fix or revert.
Before enabling this feature, we'd also want to look at UI in shipping
browsers. WebKit looks like it will implement it more as a combobox, in
which case we wouldn't want to use it for WebKit. But the code will
still be useful if/when this or any other search-suggest feature becomes
standard.
Alexandre Emsenhuber [Thu, 21 Jan 2010 22:01:38 +0000 (22:01 +0000)]
* Fix some doxygen warnings
* use spaces for identation in the middle of lines instead of tabs
Aryeh Gregor [Thu, 21 Jan 2010 21:34:26 +0000 (21:34 +0000)]
Revert broken r61251 use of strong equality
== and === mean different things. Do *not* blindly change one to the
other, *only* change them if you know that weak equality checks are
causing a bug -- or at least if you're sure that changing them will not
cause a bug. r61251 caused subtle bugs in mwsuggest that took me an
unnecessarily long time to track down while I was doing unrelated work.
Siebrand Mazeland [Thu, 21 Jan 2010 19:46:39 +0000 (19:46 +0000)]
Last 'gl' date tweak, I hope.
Raimond Spekking [Thu, 21 Jan 2010 18:43:21 +0000 (18:43 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-21 18:30 UTC)
Aryeh Gregor [Thu, 21 Jan 2010 16:43:06 +0000 (16:43 +0000)]
Reorder mwsuggest.js with entry points on top
Makes it easier to figure out how the file works.
Siebrand Mazeland [Thu, 21 Jan 2010 15:55:07 +0000 (15:55 +0000)]
Start 'createaccountmail' with a capital. This is button text used on [[Special:UserLogin/signup]].
Siebrand Mazeland [Thu, 21 Jan 2010 15:38:17 +0000 (15:38 +0000)]
Update 'move-watch' as both source page and target page are added to the watchlist.
OverlordQ [Thu, 21 Jan 2010 05:49:49 +0000 (05:49 +0000)]
Added configuration option for memcached timeout based on comments on r58185
Mark A. Hershberger [Thu, 21 Jan 2010 00:00:20 +0000 (00:00 +0000)]
Fix up data directory sniffing for sqlite. Touch up description of
data dir. Also, importPost() default values have to match default values in the
HTML form, or they're meaningless.
Mark A. Hershberger [Wed, 20 Jan 2010 23:51:56 +0000 (23:51 +0000)]
eol whitespace cleanups
Platonides [Wed, 20 Jan 2010 22:01:37 +0000 (22:01 +0000)]
(bug 21870) Remove Google logo loaded from it servers (privacy concern).
The form is now left as googlesearch message. We should probably remove the duplication and load it with wfMsgWeirdKey.
Alexandre Emsenhuber [Wed, 20 Jan 2010 21:06:22 +0000 (21:06 +0000)]
* Fixed some doxygen warnings
* Removed trailing spaces
Raimond Spekking [Wed, 20 Jan 2010 20:36:11 +0000 (20:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-20 20:15 UTC)
Roan Kattouw [Wed, 20 Jan 2010 19:15:02 +0000 (19:15 +0000)]
Revert r61291 (upgrade jQuery to 1.4): breaks in interesting ways in combination with our plugins
Jure Kajzer [Wed, 20 Jan 2010 16:19:08 +0000 (16:19 +0000)]
Fixed as per Tim's comments on r60665:
* fieldExists reduced to bool-cast output of fieldInfo
* added negative cache (handled acordingly on fieldInfo usage)
* uppercased parameters on entry. DB data is uppercased by default
Roan Kattouw [Wed, 20 Jan 2010 03:22:25 +0000 (03:22 +0000)]
Update js2stopgap.js to jQuery 1.4. Also add the minified and Google Closure-compiled version of jQuery 1.4 to js2stopgap.min.js (that's what the weird Makefile is for)
Tim Starling [Wed, 20 Jan 2010 01:50:16 +0000 (01:50 +0000)]
Fixes for r60599:
* Split $wgFixArchaicUnicode into two separate variables, one for Malayalam and one for Arabic
* Clarified documentation and switched them both on by default
* Removed accidentally added variable LanguageAr::$normalizeArray
Aaron Schulz [Tue, 19 Jan 2010 22:58:26 +0000 (22:58 +0000)]
Removed somewhat confusing part of nosuchsectiontext
Alexandre Emsenhuber [Tue, 19 Jan 2010 22:02:20 +0000 (22:02 +0000)]
* document a bit
* fixed some doxygen warnings
Raimond Spekking [Tue, 19 Jan 2010 19:04:29 +0000 (19:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-19 18:30 UTC)
Rotem Liss [Tue, 19 Jan 2010 18:36:57 +0000 (18:36 +0000)]
Localization update for he, and whitespace fix in en.
Sam Reed [Tue, 19 Jan 2010 17:23:31 +0000 (17:23 +0000)]
Move position of $prlevel array stripping, and check isset
action=query&list=allpages&apfrom=B&apprtype=edit
Gave
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in /home/reedy/mediawiki/trunk/phase3/includes/api/ApiQueryAllpages.php on line 99
ThomasV [Tue, 19 Jan 2010 17:23:29 +0000 (17:23 +0000)]
if available, use iconv because it requires less memory (fixes bug 21809) (follow up to r55768 and r55843)
Sam Reed [Tue, 19 Jan 2010 15:32:49 +0000 (15:32 +0000)]
Revert r61251 as r61252 fixes the extension (so thats presumably "Wrong")
Jack Phoenix [Tue, 19 Jan 2010 15:29:26 +0000 (15:29 +0000)]
cleanup to mwsuggest.js & fix some things suggested by JSLint
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