Commit graph

11966 commits

Author SHA1 Message Date
Matt Johnston
cd7aa10e89 (bug 15791) Typo in API docs, APIProtect has some remnants of help messages from deletion/restoration. 2008-09-30 21:03:38 +00:00
Chad Horohoe
8b789e4848 Add some more debugging goodies to this. $lastCurlErrno and $lastHttpResponse are static members saved with the last returned status codes. 2008-09-30 19:58:56 +00:00
Alex Z
ddfab2390f (bug 15789) Autoblocks now have the same setting for editing user talk as the original block. 2008-09-30 19:57:00 +00:00
Brion Vibber
9fdb79cfd2 Curl sanity -- dump non-200 return codes and error numbers to debug log at least, rather than just silently failing. 2008-09-30 19:25:04 +00:00
Alexandre Emsenhuber
5167cf4cad Fix for r41430: wfMsgExt() now accepts a Language object in the language key of $options 2008-09-30 17:15:11 +00:00
Rotem Liss
8b54f0f2b5 Fixing a function call. 2008-09-30 16:08:39 +00:00
Chad Horohoe
acf01dd7b8 Added setVal accessor to $wgRequest->data so we don't have to access it directly. Use this in ApiEditPage. 2008-09-30 15:13:13 +00:00
Chad Horohoe
2167d03261 Cleanup for Xml::namespaceSelector():
* Removed useless $hidden param, cleaned up calls that specified it (only 1, and it passed default false)
* Add $label param for easy attachment of labels to the selector.
2008-09-30 14:05:21 +00:00
Aaron Schulz
860eb6bed8 And this was true... *sigh* 2008-09-30 13:36:40 +00:00
Aaron Schulz
629db4f5d3 Revert self - local issue 2008-09-30 13:35:15 +00:00
Aaron Schulz
7e89f520eb Don't assume edits are bot edits just because there is no 'bot=' url param... 2008-09-30 13:31:48 +00:00
Tim Starling
dc935786a3 Hostnames are allowed to have dots in them 2008-09-30 08:45:52 +00:00
Matt Johnston
b368de47fd * Add Linker::link flag for using article path
* Fix mistake in Interwiki-detecting code in Title
* Clean up Interwiki.php per Tim's recommendations
2008-09-30 01:56:54 +00:00
Tim Starling
110c0bb72f Revert revert r41406 of r41333, and removed one space between attributes. 2008-09-30 01:00:40 +00:00
Brion Vibber
b74cc54810 Revert r41364 -- broke 22 parser test cases with change of alt behavior.
The caption was originally defined *as* the alt text (defaulting to the image file name if there is no alt text). Note that a separate caption text is only displayed in some display modes ('frame' and 'thumb', iirc), and not by default.

Please run the parser tests and check the effect you have on them. If it's really an appropriate change, then update the test cases. If you're not sure, consider backing out pending further discussion. :)

It might be appropriate to not set the 'alt' attribute for frame/thumb cases, but definitely not for inline images where we already have a way of setting the alt text which you're removing!
2008-09-30 00:21:59 +00:00
Brion Vibber
0dd22a5406 Back out r41333 -- causes lots of parser test regressions due to funny spacing. Probably an easy fix but it wasn't tested apparently. :) 2008-09-30 00:14:25 +00:00
Brion Vibber
5127e19626 Revert r41352-41355, r41362-41363: unauthorized schema change breaks parser tests 2008-09-30 00:07:04 +00:00
Matt Johnston
cf0521a6b0 Fix r41248 (bug 8440) - Default should be 1 to allow for previous behaviour to continue. 2008-09-29 23:16:34 +00:00
Brion Vibber
d19c6cc001 Reverted r41301, r41332 -- weird overly-specific URL tweak setting for bug 15739. 2008-09-29 23:02:52 +00:00
Victor Vasiliev
6c873c88e5 Fix silly typo. 2008-09-29 20:03:25 +00:00
Victor Vasiliev
5ffd6faf81 Fix variable name so image moving doesn't fail on images with histories. 2008-09-29 19:23:31 +00:00
Alexandre Emsenhuber
ebc90c6ee9 svn:eol-style native 2008-09-29 18:20:43 +00:00
Aaron Schulz
5003f0db44 Some protection move log cleanup (bug 15754) 2008-09-29 13:25:35 +00:00
Tim Starling
c69d5d46e8 Proposed fix for bug 14944, specifically the reports that some servers do not have en_US.UTF-8. Make the locale configurable via $wgShellLocale. Detect available locales and set $wgShellLocale to an appropriate value on install. Also fixes safe_mode putenv() warnings. RELEASE-NOTES entry will go to 1.13. 2008-09-29 10:19:11 +00:00
Matt Johnston
c7c92af0c7 Fix r41377 - Incompatible old keys caused Fatal Error 2008-09-29 10:14:45 +00:00
Matt Johnston
904c84d8d4 New format for accessing Interwiki data. Replaced all old ways within core I could find, but should be backwards compatible wherever needed.
Also fix the notes in RELEASE-NOTES to state PHP 5.2 recommended as certain classes require it (e.g. ForeignAPIRepo, which uses json_decode)
2008-09-29 10:08:46 +00:00
Chad Horohoe
32dc69cf4d Whoops. Need to pass parameters. 2008-09-29 08:44:40 +00:00
Chad Horohoe
9d0bb535fe Move some of this caching logic out of the file and into the repo where it belongs. 2008-09-29 08:23:16 +00:00
Chad Horohoe
1bc6db839f * Remove unneeded ini_set() from a very long time ago. Can't run this on allow_url_fopen nowadays.
* Remove extra global declaration.
2008-09-29 06:24:32 +00:00
Chad Horohoe
de193b7869 Cleanup some docs :) 2008-09-29 06:12:47 +00:00
Alex Z
7049385253 Use a new message for protection form expiry options instead of recycling the blockip one. 2008-09-29 01:35:04 +00:00
Aryeh Gregor
a53fa1decd (bug 368) Allow alt= attribute for images
If the attribute is not specified, default to empty string, not repeating the caption.
2008-09-28 21:07:34 +00:00
Victor Vasiliev
4aa172290f Split time and date in messages. 2008-09-28 20:35:58 +00:00
Victor Vasiliev
bd915073f9 * Fix caching
* Fix messages
2008-09-28 19:34:14 +00:00
Niklas Laxström
72f2d1b16f * Some cleanup 2008-09-28 17:14:32 +00:00
Niklas Laxström
461cd01eff * Do not show anything if user has not done any edits 2008-09-28 16:43:07 +00:00
Victor Vasiliev
2530bdc02e Some code cleanup per Nikerabbit 2008-09-28 16:28:35 +00:00
Victor Vasiliev
bec6903108 * (bug 674) Allow users to be blocked from editing a specific article
** Also supports blocking user from editing whole namespace
* Replace ugly ipboptions parsing code in Title.php with a simple message

Requires schema change (I showed it to Tim Starling).
2008-09-28 16:08:18 +00:00
Niklas Laxström
673d03386b * Use formatNum 2008-09-28 16:01:03 +00:00
Aaron Schulz
3c4892d95e Make listusers show users' edit counts (bug 15503) 2008-09-28 15:52:30 +00:00
Niklas Laxström
4a2641f4e5 * user{css,js}preview was not shown since r40066
* readd !preview condition to usercssjsyoucanpreview
2008-09-28 14:56:07 +00:00
Niklas Laxström
a4271985fa * Do not pass objects to functions that don't take them 2008-09-28 11:51:39 +00:00
Alexandre Emsenhuber
83cab059b3 Use $wgContLang here, this should not vary with the user language. 2008-09-28 10:51:58 +00:00
Niklas Laxström
3918deeeca * (bug 15388) Title of Special:PrefixIndex 2008-09-28 09:31:24 +00:00
Niklas Laxström
7928acbcd4 * (bug 15196) Free external links should be numbered in a localised manner 2008-09-28 08:45:03 +00:00
Niklas Laxström
8ac66063c5 +* (bug 15158) Userinvalidcssjstitle not shown on preview 2008-09-28 08:22:55 +00:00
Tim Starling
8826c623ff In wasDeletedSinceLastEdit(): fix odd string comparison method, there's an operator for that 2008-09-28 04:20:49 +00:00
Aaron Schulz
ee3153d486 Opps, use wfTimestamp(), need some sleep :) 2008-09-28 04:08:13 +00:00
Aaron Schulz
f4db431894 Fix time check for deletedSinceEdit for PG (bug 15751) 2008-09-28 04:05:01 +00:00
Tim Starling
b0f96a03f7 Simpler method for mixing and clipping when computing a second-try hash value 2008-09-28 04:04:10 +00:00