Aryeh Gregor [Fri, 7 Aug 2009 03:32:20 +0000 (03:32 +0000)]
Start using some HTML 5 form features
autofocus attribute added in some places; this looks like it's respected
by both recent Opera and recent WebKit. Its function is
self-explanatory. :) I used this in a few obvious places like
Special:UserLogin and Special:ResetPass to focus the first field in the
form. Could be used in other places too: Special:Search, etc.
required attribute added in some places. This is only supported in
recent Opera at the moment. Also self-explanatory: it won't allow form
submission if the field is empty.
For stuff using HTMLForm (i.e., Special:Preferences), validation will be
done for integers and floats. Browsers that support this (recent Opera)
will not allow non-integers to be submitted for integer fields, will not
allow non-floating-point values to be submitted for float fields, and
will enforce any min/max values specified. Opera also gives little up
and down arrows to allow the user to increment/decrement the value in
addition to letting them edit the field as text.
For HTMLForm and account creation, the email input type is used for
e-mails. This enforces a sane set of values for e-mails (alphanumerics
plus some ASCII punctuation, with an @ in it). Again, this is supported
only by recent Opera (yay Opera!). Note that this is actually more
restrictive than what we currently check for on the server side; it
might be sane to tighten up our server-side checks to forbid e-mail
addresses that HTML 5 forbids.
In all cases, the extra features aren't added if $wgHtml5 is false, and
will be ignored by non-supporting browsers.
The major room for further improvement here is use of the pattern
attribute. We can have the client refuse to submit the form unless it
matches a regex! The HTML 5 spec says that if a title attribute is
provided, it should be a message that explains what the valid values
are and browsers should provide it to the user if the regex doesn't
match, so it's not a usability problem. I didn't bother adding that
anywhere at this point because it would require adding new messages, but
it should be easy to do. Note of course that HTMLForm should be updated
to verify that pattern matches on the server side as well -- this way we
have a clean, unified way of ensuring that our client and server checks
are the same.
Aryeh Gregor [Fri, 7 Aug 2009 02:17:56 +0000 (02:17 +0000)]
Whitespace
Michael Dale [Fri, 7 Aug 2009 01:32:14 +0000 (01:32 +0000)]
fixed infinite loop bug on removing all clips from sequence
Benjamin Lees [Fri, 7 Aug 2009 00:53:21 +0000 (00:53 +0000)]
(bug 19289) importDump.php can now handle bzip2 and 7zip.
I split out our 7zip stream wrapper into its own file, 7zip.inc.
Michael Dale [Fri, 7 Aug 2009 00:16:54 +0000 (00:16 +0000)]
fixed bug in addClass append
Michael Dale [Thu, 6 Aug 2009 23:56:34 +0000 (23:56 +0000)]
integration of default transcode settings presets to stand alone firefogg encoder app
Michael Dale [Thu, 6 Aug 2009 23:43:44 +0000 (23:43 +0000)]
updated firefogg to the "webstream" settings constancy with wikiAtHome
Andrew Garrett [Thu, 6 Aug 2009 22:55:44 +0000 (22:55 +0000)]
Error-handling for GIF getLongDesc
Chad Horohoe [Thu, 6 Aug 2009 22:35:19 +0000 (22:35 +0000)]
Followup r54516, remove globals entirely.
Michael Dale [Thu, 6 Aug 2009 22:25:47 +0000 (22:25 +0000)]
* made wgMaxUploadSize check work with js2/firefogg uploading interface.
Michael Dale [Thu, 6 Aug 2009 22:08:40 +0000 (22:08 +0000)]
* added check to chunk uploads to make sure we have not append beyond $wgMaxUploadSize size
Alexandre Emsenhuber [Thu, 6 Aug 2009 20:08:54 +0000 (20:08 +0000)]
* changed egreg_replace to preg_replace, the former is deprecated since PHP 5.3
* fixed E_NOTICE: undefined variable $subdir
Andrew Garrett [Thu, 6 Aug 2009 16:26:04 +0000 (16:26 +0000)]
* Fail fast on trying to find create restrictions for pages that exist.
* Break out loadRestrictionsFromRow into a new function loadRestrictionsFromRows (which actually accepts an array of rows, unlike the original), and loadRestrictionsFromResultWrapper, which has the semantics of the old function (and wraps around loadRestrictionsFromRows).
Andrew Garrett [Thu, 6 Aug 2009 16:23:23 +0000 (16:23 +0000)]
Move ID-Name cache to a static variable, so it can be added to externally.
Andrew Garrett [Thu, 6 Aug 2009 16:11:12 +0000 (16:11 +0000)]
If an object has already been unstubbed (i.e. we have a copy of the StubObject, which has since been unstubbed but the copy not updated), then return the already-unstubbed object instead of unstubbing it again
Rotem Liss [Thu, 6 Aug 2009 13:52:21 +0000 (13:52 +0000)]
Localization update.
Jan Luca Naumann [Thu, 6 Aug 2009 13:46:59 +0000 (13:46 +0000)]
(fix for r54516) Update RELEASE-NOTES
Jan Luca Naumann [Thu, 6 Aug 2009 13:40:13 +0000 (13:40 +0000)]
(r54511) Replace global array with hook
Chad Horohoe [Thu, 6 Aug 2009 12:47:11 +0000 (12:47 +0000)]
Fix regression.
Shinjiman [Thu, 6 Aug 2009 11:20:08 +0000 (11:20 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Jan Luca Naumann [Thu, 6 Aug 2009 10:01:08 +0000 (10:01 +0000)]
Add interface for adding own statistics with $wgStatsOther:
* Enable/Disable this with $wgAllowStatsOther
* Use $wgStatsOther['<name of statistic>'] = <value (number)> for adding the statistic
Niklas Laxström [Thu, 6 Aug 2009 09:45:38 +0000 (09:45 +0000)]
* <b>Notice</b>: Undefined variable: val2 in <b>/var/www/sandwiki/includes/specials/SpecialUpload.php</b> on line <b>741</b>
* Fixed regression from r54428
Philip Tzou [Thu, 6 Aug 2009 04:53:17 +0000 (04:53 +0000)]
Localization updates for zh-hans.
Shinjiman [Thu, 6 Aug 2009 04:18:15 +0000 (04:18 +0000)]
Fix up the gender support for the Chinese languages.
Thanks Liangent to point them out.
Follow up of r51027 (bug 18847) and r54473.
Aaron Schulz [Thu, 6 Aug 2009 04:06:36 +0000 (04:06 +0000)]
fix more breakage from r54255
Shinjiman [Thu, 6 Aug 2009 02:18:51 +0000 (02:18 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Chad Horohoe [Thu, 6 Aug 2009 00:32:50 +0000 (00:32 +0000)]
Clean up missing param error, show help on die. -params are still kind of wonky. Could use a second set of eyes.
Trevor Parscal [Wed, 5 Aug 2009 22:46:10 +0000 (22:46 +0000)]
Removed some unneeded specificity of headings.
Rotem Liss [Wed, 5 Aug 2009 20:13:14 +0000 (20:13 +0000)]
Localization update for he, and removing trailing whitespace in en.
Raimond Spekking [Wed, 5 Aug 2009 18:44:56 +0000 (18:44 +0000)]
Localisation updates for core messages from translatewiki.net (2009-08-05 18:15 UTC)
Tomasz Finc [Wed, 5 Aug 2009 18:35:23 +0000 (18:35 +0000)]
Updates for: per-revision delete flags, log exports, and a per-page redirect flag
Trevor Parscal [Wed, 5 Aug 2009 18:30:42 +0000 (18:30 +0000)]
Fixes IE bug that causes lists in panel to show bullets.
Trevor Parscal [Wed, 5 Aug 2009 16:38:08 +0000 (16:38 +0000)]
Fixed bug that caused an undefined index error - now we check the key before checking value.
Alexandre Emsenhuber [Wed, 5 Aug 2009 15:41:19 +0000 (15:41 +0000)]
follow-up r54454 and r54457: rebuild message file
Tobias [Wed, 5 Aug 2009 15:27:38 +0000 (15:27 +0000)]
adding <nowiki> to user signature in MessagesEn.php (fixing r54454)
Tobias [Wed, 5 Aug 2009 15:05:30 +0000 (15:05 +0000)]
adding new messages to messages.inc (fixing r54454)
Tobias [Wed, 5 Aug 2009 14:45:21 +0000 (14:45 +0000)]
Adding signature preview on Special:Preferences and introducing help text for signature. (bug 16836)
Alexandre Emsenhuber [Wed, 5 Aug 2009 14:37:00 +0000 (14:37 +0000)]
* use wfScript() in OutputPage to build the url for mwScriptLoader.php so that $wgScriptExtension is used
* use $wgScriptExtension when matching the path in mwScriptLoader.php
* some more typos in mwScriptLoader.php
Chad Horohoe [Wed, 5 Aug 2009 11:59:25 +0000 (11:59 +0000)]
Might as well.
Alex Z [Wed, 5 Aug 2009 04:42:54 +0000 (04:42 +0000)]
(bug 17864 + bug 19519) - Do input normalization on the username before doing existence/permission checks
Benjamin Lees [Wed, 5 Aug 2009 04:27:19 +0000 (04:27 +0000)]
Convert check to use wfShorthandToInteger()
Alex Z [Wed, 5 Aug 2009 04:20:13 +0000 (04:20 +0000)]
OutputPage::formatPermissionsErrorMessage() expects an array of arrays, passing an array of strings causes a warning in PHP 5.3
Chad Horohoe [Wed, 5 Aug 2009 04:09:02 +0000 (04:09 +0000)]
Update http_session_download, digit2html, lang2po, langmemusage.
Chad Horohoe [Wed, 5 Aug 2009 03:15:16 +0000 (03:15 +0000)]
Remove completely unused file copy functions (grep'd core & extensions)
Brion Vibber [Wed, 5 Aug 2009 03:02:02 +0000 (03:02 +0000)]
Ok I think this is a sign I'm done for the evening. Fixing other test checkin -- was searching for bogus bash to test the fallabck ;)
Brion Vibber [Wed, 5 Aug 2009 02:59:32 +0000 (02:59 +0000)]
remove junk function I gave up on -- no clear way to get unbuffered reads from terminal in direct PHP (and who wants to reimplement readline anyway?)
Brion Vibber [Wed, 5 Aug 2009 02:57:11 +0000 (02:57 +0000)]
Add support for using bash's built-in readline or equivalent for single-line input editing in eval.php etc, if the PHP readline extension is not available.
This is handy when running on Mac OS X with Apple's default PHP installation...
If bash cannot be found, will fall back to the fgets() we did before -- a horrible realm in which arrow keys and backspace don't work.
Note that this isn't quite as good as full readline support, since we don't get to retain entry history.
OverlordQ [Wed, 5 Aug 2009 02:34:41 +0000 (02:34 +0000)]
Followup to r54416
Dont log messages when you 'increase' the limit from a number to itself.
Chad Horohoe [Wed, 5 Aug 2009 02:24:50 +0000 (02:24 +0000)]
Remove trailing ?>
Brion Vibber [Wed, 5 Aug 2009 01:37:19 +0000 (01:37 +0000)]
Drop the wfProfileIn/wfProfileOut if we want the class to be usable outside MW :)
OverlordQ [Wed, 5 Aug 2009 01:33:18 +0000 (01:33 +0000)]
Follow up to r54414 and r54356. Hopefully catches all of the edge cases of erroneous input. On a side note, if PHP is configured with too low a limit it can die before it even reaches the code in Setup.php
Benjamin Lees [Wed, 5 Aug 2009 00:59:50 +0000 (00:59 +0000)]
Followup to r54406: enable/disable functions were being called in the wrong order (thanks, OverlordQ).
Aryeh Gregor [Wed, 5 Aug 2009 00:38:11 +0000 (00:38 +0000)]
Make sure to parse RC legend label inline
Avoids unnecessary <p> tags. Pointed out by Nikerabbit on CodeReview
for r54337.
Chad Horohoe [Wed, 5 Aug 2009 00:34:18 +0000 (00:34 +0000)]
Doc fixes, add new Wikimedia group for doxygen so we can set this stuff apart.
Chad Horohoe [Wed, 5 Aug 2009 00:23:10 +0000 (00:23 +0000)]
Make this work by only loading things with a maintClass.
Brion Vibber [Tue, 4 Aug 2009 23:24:58 +0000 (23:24 +0000)]
Add fixme note to replace 'mysql' command-line callout with proper usage of a second unbuffered DB connection
Chad Horohoe [Tue, 4 Aug 2009 23:18:23 +0000 (23:18 +0000)]
Remove useless scripts list. Nothing depends on it yet really, so nobody will miss it. Instead iterate over all .php files in the maintenance directories and look for $maintClass. Keep this commented out for now, unported scripts cause this to blow up and I'm not writing stupid workarounds.
Chad Horohoe [Tue, 4 Aug 2009 23:09:43 +0000 (23:09 +0000)]
Declare globals. Move this all inside the $method = pipe stuff anyway.
Benjamin Lees [Tue, 4 Aug 2009 23:00:30 +0000 (23:00 +0000)]
Add missing semicolons
Benjamin Lees [Tue, 4 Aug 2009 22:58:43 +0000 (22:58 +0000)]
Suppress warnings when trying to raise the memory limit
Brion Vibber [Tue, 4 Aug 2009 19:17:31 +0000 (19:17 +0000)]
* wgMainPageTitle variable now available to JavaScript code to identify the main page link, so it doesn't have to be extracted from the link URLs.
Can be used to link to the main page, or check if we're currently on the main page, without having to hardcode the local name (which may be customized in the message)
Michael Dale [Tue, 4 Aug 2009 18:51:34 +0000 (18:51 +0000)]
some sequence / playlist / add-media bug fixes
* improved abstraction of embedVideo class for playlist object
Alexandre Emsenhuber [Tue, 4 Aug 2009 18:29:08 +0000 (18:29 +0000)]
two more typos
Michael Dale [Tue, 4 Aug 2009 18:26:54 +0000 (18:26 +0000)]
removed old "code" link
Alexandre Emsenhuber [Tue, 4 Aug 2009 17:58:33 +0000 (17:58 +0000)]
fix typo in comment
Rotem Liss [Tue, 4 Aug 2009 17:55:47 +0000 (17:55 +0000)]
Localization update.
Michael Dale [Tue, 4 Aug 2009 17:42:31 +0000 (17:42 +0000)]
stubs for select from url for firefogg
Niklas Laxström [Tue, 4 Aug 2009 16:31:19 +0000 (16:31 +0000)]
* Forward get parameters to local interwikis
* Patch by str4nd
Andrew Garrett [Tue, 4 Aug 2009 15:08:56 +0000 (15:08 +0000)]
Fix syntax error
Aaron Schulz [Tue, 4 Aug 2009 12:18:44 +0000 (12:18 +0000)]
check 'undelete' for undelete page links
Chad Horohoe [Tue, 4 Aug 2009 11:18:05 +0000 (11:18 +0000)]
Better patch for parsing PHP's memory limits from OverlordQ.
Aryeh Gregor [Tue, 4 Aug 2009 10:59:35 +0000 (10:59 +0000)]
Fix flag legend for watchlist from r54336 breakage
Mistake pointed out by Darth Kule on translatewiki.net, conveyed to me
by Nikerabbit. I changed the semantics of a message but didn't update
all the callers.
Niklas Laxström [Tue, 4 Aug 2009 08:54:31 +0000 (08:54 +0000)]
Whitespace fixes
Bryan Tong Minh [Tue, 4 Aug 2009 08:40:38 +0000 (08:40 +0000)]
Overide getDB() method to make sure to make sure the repo's DB is used which may not necesarilly be the same as the local DB.
Chad Horohoe [Tue, 4 Aug 2009 02:47:39 +0000 (02:47 +0000)]
(bug 16084) Default memory limit should be increased
Shinjiman [Tue, 4 Aug 2009 02:19:06 +0000 (02:19 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Aryeh Gregor [Tue, 4 Aug 2009 00:50:50 +0000 (00:50 +0000)]
Add wrapper div for RC label legend
By request of Umherirrender on CodeReview for r54242.
Aryeh Gregor [Tue, 4 Aug 2009 00:48:45 +0000 (00:48 +0000)]
Only show useful info in RC legend
This splits up the message recentchanges-label-legend so that pieces of
it can be provided only when they're relevant, and more can be added
later. Any existing translations will need to be retranslated, but it's
only been a day, so creating a new message name seemed like overkill.
Follow-up to r54242.
Aryeh Gregor [Tue, 4 Aug 2009 00:28:20 +0000 (00:28 +0000)]
Show change flag tooltips everywhere, not just RC
Follow-up to r54242. Pointed out by Umherirrender on CodeReview.
Chad Horohoe [Tue, 4 Aug 2009 00:23:56 +0000 (00:23 +0000)]
Followup r54328: Would've helped to commit this
Chad Horohoe [Mon, 3 Aug 2009 23:46:22 +0000 (23:46 +0000)]
* Port populateSha1 to new code style
* For bug 17057/17070, can now run this on and individual file to fix the img_sha1 column if it's wrong
* Alpha sort the params in help mode
Trevor Parscal [Mon, 3 Aug 2009 23:44:39 +0000 (23:44 +0000)]
Fixed release note added in r54326 which was in the wrong section.
Trevor Parscal [Mon, 3 Aug 2009 23:43:19 +0000 (23:43 +0000)]
Added release notes for changes in r54109 - a fix to bug #18497 which caused pages in Opera in fullscreen mode to not use any style sheets.
Chad Horohoe [Mon, 3 Aug 2009 22:31:52 +0000 (22:31 +0000)]
(bug 15209) New hook right after initialization
Chad Horohoe [Mon, 3 Aug 2009 22:05:03 +0000 (22:05 +0000)]
Move populateSha1.php up from archives into maintenance root (nothing calls this automatically, so it shouldn't break anything)
Chad Horohoe [Mon, 3 Aug 2009 21:59:47 +0000 (21:59 +0000)]
RIP importLogs. Ancient, un-needed and probably never worked outside WMF anyway :)
Chad Horohoe [Mon, 3 Aug 2009 21:56:41 +0000 (21:56 +0000)]
Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time.
Alexandre Emsenhuber [Mon, 3 Aug 2009 20:19:47 +0000 (20:19 +0000)]
removed double "@ingroup Maintenance"
Alexandre Emsenhuber [Mon, 3 Aug 2009 19:57:35 +0000 (19:57 +0000)]
fix for r54291: missing ending $ in $Id$
Alexandre Emsenhuber [Mon, 3 Aug 2009 19:51:25 +0000 (19:51 +0000)]
Seems that I forgot to commit the RELEASE-NOTES file along with r54206 *stab self*
Raimond Spekking [Mon, 3 Aug 2009 18:24:24 +0000 (18:24 +0000)]
Localisation updates for core messages from translatewiki.net (2009-08-03 17:35 UTC)
Rotem Liss [Mon, 3 Aug 2009 18:02:47 +0000 (18:02 +0000)]
Localization fix.
Rotem Liss [Mon, 3 Aug 2009 18:02:12 +0000 (18:02 +0000)]
Localization update.
Shinjiman [Mon, 3 Aug 2009 17:56:18 +0000 (17:56 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Bryan Tong Minh [Mon, 3 Aug 2009 17:48:01 +0000 (17:48 +0000)]
(bug 19004) Added support for tags to the API. Patch by Matthew Britton.
Aaron Schulz [Mon, 3 Aug 2009 16:43:27 +0000 (16:43 +0000)]
* rev_deleted css fixes
* disable unusable links per bug 20006
Aaron Schulz [Mon, 3 Aug 2009 16:35:54 +0000 (16:35 +0000)]
clean up bizarre code - use timestamp for links again (as it is on deployment)
Raimond Spekking [Mon, 3 Aug 2009 15:14:06 +0000 (15:14 +0000)]
Follow-up r54284: PLURAL keyword for message
* Add new message keys to maintenance script
* eol-style:native
Andrew Garrett [Mon, 3 Aug 2009 15:01:51 +0000 (15:01 +0000)]
(bug 16451) Fix application of scaling limits for animated GIFs.
* Creates a new media handler for GIF files, and extracts metadata such as duration, whether or not the GIF is looped, and the number of frames.
* Uses the extracted metadata for the long file description.
* Considers number of frames in the calculation of image area (multiplies by width and height to get the "time-area", or so to speak).
After this patch is deployed, the work-around to disable GIF scaling on Wikimedia sites can be eliminated.
Niklas Laxström [Mon, 3 Aug 2009 11:36:47 +0000 (11:36 +0000)]
Memcached does not like spaces in keys