Rotem Liss [Wed, 22 Nov 2006 14:11:46 +0000 (14:11 +0000)]
Update; setting autoblock_whitelist to be an ignored message.
Domas Mituzas [Wed, 22 Nov 2006 14:06:00 +0000 (14:06 +0000)]
remove 'subkey' (255) for a field which is 40-chars long, fixes stuff...
Tim Starling [Wed, 22 Nov 2006 13:22:41 +0000 (13:22 +0000)]
fixed a special page name comparison
Andrew Garrett [Wed, 22 Nov 2006 11:51:49 +0000 (11:51 +0000)]
* (bug 7883) Added autoblock whitelisting feature, using which specific ranges can be protected from autoblocking. These ranges are specified, in list format, in the autoblock_whitelist system message.
Tim Starling [Wed, 22 Nov 2006 09:06:24 +0000 (09:06 +0000)]
Applying patch (slightly modified) from bug 8003 by AlefZet. The patch is clearly necessary, but I'm not sure if it is sufficient. Also fixed indenting.
Tim Starling [Wed, 22 Nov 2006 07:08:50 +0000 (07:08 +0000)]
Implementation of delimiterReplace() with a behaviour much closer to that of the model regex. Tested using comparitive fuzz testing. The only known difference now is where the start delimiter ends with an initial substring of the end delimiter, e.g. the previously mentioned case of C-style comments.
Aryeh Gregor [Wed, 22 Nov 2006 00:25:57 +0000 (00:25 +0000)]
(bug 7554) The correct MIME type for SVG images is now displayed on the image page (image/svg+xml, not image/svg). This is a hack because it only affects display, and doesn't correct the internal storage. I don't know how the latter works, so I wasn't confident touching it.
Aryeh Gregor [Tue, 21 Nov 2006 22:49:25 +0000 (22:49 +0000)]
Since formatComment and commentBlock can take null as well as Title objects (per r17833), corrected documentation (Title -> mixed). Since revComment would immediately fail if passed anything but a Revision object or descendant, restore type hinting to that.
Rotem Liss [Tue, 21 Nov 2006 19:26:11 +0000 (19:26 +0000)]
Fixes for the script rebuildLanguage.php:
* (bug 7983) Sort blocks in the correct order
* Sort the unknown messages alphabetically
* Use single apostrophe on messages which include dollar signs which are not followed by numbers
Rotem Liss [Tue, 21 Nov 2006 19:01:40 +0000 (19:01 +0000)]
(bug 7984) Update to Indonesian localisation (id) #40
Rotem Liss [Tue, 21 Nov 2006 18:55:26 +0000 (18:55 +0000)]
(bug 7978) New localization for Old Church Slavonic
Rotem Liss [Tue, 21 Nov 2006 18:43:52 +0000 (18:43 +0000)]
Fix.
Rotem Liss [Tue, 21 Nov 2006 18:38:06 +0000 (18:38 +0000)]
Reverting the addition of class names near the parameters: it doesn't seem to have a purpose, and breaks PHP 5.0.4 on my computer (PHP raises error when the parameters are set to null).
Rotem Liss [Tue, 21 Nov 2006 18:26:55 +0000 (18:26 +0000)]
Replacing the manual user and user talk links of the blocker in Special:Ipblocklist to Linker::userLink and Linker::userToolLinks; for that, added the function Block::getBy, to get the blocker user ID.
Tim Starling [Tue, 21 Nov 2006 12:12:20 +0000 (12:12 +0000)]
bump style version for wikibits.js change
Tim Starling [Tue, 21 Nov 2006 11:20:04 +0000 (11:20 +0000)]
profiling
Tim Starling [Tue, 21 Nov 2006 10:38:07 +0000 (10:38 +0000)]
Collection of generic string functions and classes
Tim Starling [Tue, 21 Nov 2006 09:53:45 +0000 (09:53 +0000)]
* Introduced StringUtils.php, populated it with some generic string functions, both new and collected from various other files.
* Removed some backtracking regexes with an O(N^2) worst case, replaced with StringUtils::delimiterReplace(). There is a beneficial functional difference: /*/ is no longer considered to be a complete CSS comment.
* Changed the parser strip state from an array to an object. This should hopefully avoid the PHP bugs with array references. StripState uses the new ReplacementArray to do the replacements, thereby supporting FSS.
* Removed DatabaseFunctions.php from the default startup sequence. Moved wfGetDB() to GlobalFunctions.php.
* Introduced the SiteStats class, with a collection of cached site stats accessor functions.
* Removed all global functions from Parser.php, they don't belong there.
* Made LanguageConverter use the new ReplacementArray class instead of managing its own FSS objects.
Tim Starling [Tue, 21 Nov 2006 09:37:36 +0000 (09:37 +0000)]
Fixed recently committed error.
Aryeh Gregor [Tue, 21 Nov 2006 03:22:18 +0000 (03:22 +0000)]
Code style tweaks per brion's suggestions on Wikitech-l
Rotem Liss [Mon, 20 Nov 2006 14:35:44 +0000 (14:35 +0000)]
Update.
Andrew Garrett [Mon, 20 Nov 2006 11:48:03 +0000 (11:48 +0000)]
* Added autosummary for new pages with 500 or less characters, and refactor the autosummary code so it's all done in one function. doEdit is getting too big\!
Aryeh Gregor [Mon, 20 Nov 2006 06:09:29 +0000 (06:09 +0000)]
(bug 2001) Implement sortable tables. sorttable.js is loaded conditionally based on whether a sortable table is on the page, so there should be no unneeded hits.
Andrew Garrett [Mon, 20 Nov 2006 06:01:45 +0000 (06:01 +0000)]
Fix bug reported by Slowking_Man where retroactive autoblocks take effect even if the user being blocked was already blocked with autoblocks disabled.
Aryeh Gregor [Mon, 20 Nov 2006 05:41:53 +0000 (05:41 +0000)]
(bug 7889) Don't show "blank edit summary" notice if a redirect autosummary will be added. Do show it if a blanking autosummary will be added, however.
Also, I separated out the blanking autosummary thing into its own static function, mainly because I almost included it in this too. I decided not to, but why not keep the function separate, doEdit is huge.
Aryeh Gregor [Mon, 20 Nov 2006 05:15:51 +0000 (05:15 +0000)]
* (bug 7918) Fix regression in display of "templates used on this page" for users with edit form before preview
* Make section edits show templates used in the section, not the page
Patch by Mark Haidar (Fyren). I didn't change the Boolean params to class constants because they're currently called as ($this->preview, $this->section != ''), which is much more readable than the alternative.
Aryeh Gregor [Sun, 19 Nov 2006 17:16:34 +0000 (17:16 +0000)]
Fix minor bug in r17715: don't display rollback link on history page for non-latest revision, even if it's at the top of the page. Also add some documentation to PageHistory::historyLine.
Niklas Laxström [Sun, 19 Nov 2006 17:00:56 +0000 (17:00 +0000)]
* Updates from BrokenArrow
Tim Starling [Sun, 19 Nov 2006 03:56:54 +0000 (03:56 +0000)]
UDP profiling
Rotem Liss [Sat, 18 Nov 2006 18:45:34 +0000 (18:45 +0000)]
(bug 7972) Add a comment to clarify the code
Rotem Liss [Sat, 18 Nov 2006 18:38:28 +0000 (18:38 +0000)]
Fixes.
Rotem Liss [Sat, 18 Nov 2006 13:03:55 +0000 (13:03 +0000)]
(bug 7859) Updates for Kazakh i18n
Brion Vibber [Sat, 18 Nov 2006 11:30:33 +0000 (11:30 +0000)]
* (bug 7970) Use current connection explicitly on Database::getServerVersion
Tim Starling [Sat, 18 Nov 2006 05:23:41 +0000 (05:23 +0000)]
Don't dump the MediaWiki namespace. Protection against overlong filenames. Always use dest/$imageRel as the upload directory. Display a warning if makeSnapshot is disabled. Display a warning if symlink/copy fails.
Tim Starling [Sat, 18 Nov 2006 05:19:07 +0000 (05:19 +0000)]
embryonic profiling feature
Tim Starling [Sat, 18 Nov 2006 05:17:25 +0000 (05:17 +0000)]
Add the ability to change the profile ID for UDP profiling at runtime
Greg Sabino Mullane [Fri, 17 Nov 2006 20:52:00 +0000 (20:52 +0000)]
Fix (possibly temporary) for Postgres timestamp parsing issue.
Brion Vibber [Fri, 17 Nov 2006 15:37:26 +0000 (15:37 +0000)]
Finish transition of old-revision-navigation -> revision-info
Aryeh Gregor [Fri, 17 Nov 2006 13:27:56 +0000 (13:27 +0000)]
Restore previous parser test with comment in response to brion on Wikitech-l. And note to self: URLENCODING URLS IS VERY VERY BAD. Even when you're tired.
Aryeh Gregor [Fri, 17 Nov 2006 12:42:16 +0000 (12:42 +0000)]
Right angle bracket never needs to be escaped except "when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section." No point in escaping it other times (even when it follows a literal left angle bracket, since that will already be escaped). w3.org/TR/2006/REC-xml-
20060816/#syntax
Rotem Liss [Fri, 17 Nov 2006 10:52:39 +0000 (10:52 +0000)]
Forgot to add this message.
Rotem Liss [Fri, 17 Nov 2006 10:50:39 +0000 (10:50 +0000)]
Adding edittools again, was probably removed by mistake.
Rotem Liss [Fri, 17 Nov 2006 10:48:03 +0000 (10:48 +0000)]
Update.
Aryeh Gregor [Fri, 17 Nov 2006 04:14:19 +0000 (04:14 +0000)]
After discussion with Fyren on IRC, apply last patch for both sides of diff.
Aryeh Gregor [Fri, 17 Nov 2006 03:59:32 +0000 (03:59 +0000)]
(bug 7688) When viewing diff, section anchors in autosummary jump to section on current page. Patch by Mark Haidar (Fyren) with slight modifications.
Aryeh Gregor [Fri, 17 Nov 2006 03:42:23 +0000 (03:42 +0000)]
Clean up last commit: OutputPage::formatTemplates + EditPage::formatTemplates -> Linker::formatTemplates.
Aryeh Gregor [Fri, 17 Nov 2006 03:32:12 +0000 (03:32 +0000)]
(bug 7918) "Templates used on this page" is now shown for read-only pages.
Aryeh Gregor [Fri, 17 Nov 2006 03:16:18 +0000 (03:16 +0000)]
(bug 7918) "Templates used on this page" changes during preview to reflect any added or removed templates. Patch by Mark Haidar.
Aryeh Gregor [Fri, 17 Nov 2006 02:05:34 +0000 (02:05 +0000)]
(bug 4178) MediaWiki:Common.js will now be included for all users if $wgUseSiteJs is enabled, in addition to (if applicable) MediaWiki:Monobook.js and user JS subpages.
No extra page loads, brion!
Aryeh Gregor [Fri, 17 Nov 2006 00:49:42 +0000 (00:49 +0000)]
Replace 'old-revision-navigation' message with 'revision-info' and 'revision-nav' messages, wrapped in divs with appropriate id's (instead of <br />). I've kept the old message for now, in case any unofficial extensions use it for some reason or whatever, but maybe it should be removed entirely?
Aryeh Gregor [Thu, 16 Nov 2006 23:00:44 +0000 (23:00 +0000)]
(bug 7942) Fix typo in German localization.
Brion Vibber [Thu, 16 Nov 2006 22:57:58 +0000 (22:57 +0000)]
* Detect CGI configurations where PATH_INFO is set up correctly.
PHP config var cgi.fix_pathinfo isn't detectable through ini_get(), but
we can find some side-effects. Only tested on lighttpd so far, hopefully
right on Apache too!
lighty documentation says you have to use the "broken-scriptfilename" => "enable"
option on lighty fast-cgi config, plus set cgi.fix_pathinfo to make it work.
I've found that cgi.fix_pathinfo is on by default in current PHP (tested 5.2.0),
and I don't seem to have to change the defaults on lighty either.
Aryeh Gregor [Thu, 16 Nov 2006 22:53:01 +0000 (22:53 +0000)]
* urlencode username so rollback-on-history works for users with funny names
* Move rollback-link-generating code to Linker::generateRollback
Tim Starling [Thu, 16 Nov 2006 16:49:23 +0000 (16:49 +0000)]
Removed broken redundant fallback to the Language message array. Message arrays are now merged pre-cache. It's a static call on a non-static function, it actually calls back to $wgMessageCache->load(), destroying the per-process message cache on every cache miss.
Rotem Liss [Thu, 16 Nov 2006 13:46:47 +0000 (13:46 +0000)]
(bug 7859) Updates for Kazakh i18n
Rotem Liss [Thu, 16 Nov 2006 13:20:34 +0000 (13:20 +0000)]
Update.
Brion Vibber [Thu, 16 Nov 2006 12:26:34 +0000 (12:26 +0000)]
add some debugging output to img_auth.php
Aryeh Gregor [Thu, 16 Nov 2006 07:18:18 +0000 (07:18 +0000)]
(bug 3315) Allow rollback directly from history page.
Aryeh Gregor [Thu, 16 Nov 2006 05:44:59 +0000 (05:44 +0000)]
(bug 6873) When viewing old revisions, add link to diff to current version.
Aryeh Gregor [Thu, 16 Nov 2006 05:13:44 +0000 (05:13 +0000)]
Don't use jargon like "blanking" in the messages
Aryeh Gregor [Thu, 16 Nov 2006 03:40:11 +0000 (03:40 +0000)]
(bug 7932) Make sure that edit toolbar clears floats so it appears correctly.
Tim Starling [Wed, 15 Nov 2006 09:52:49 +0000 (09:52 +0000)]
Added --shared-desc and --no-shared-desc options, for strict job ordering when slicing.
Nick Jenkins [Wed, 15 Nov 2006 08:43:52 +0000 (08:43 +0000)]
Denote some external objects used by wikibits.js to reduce JSlint warnings.
Nick Jenkins [Wed, 15 Nov 2006 07:56:24 +0000 (07:56 +0000)]
* (Bug 6839) Cleaning up wikibits.js to reduce number of warnings reported by JSLint online tool ( jslint.com/ ) . This mostly consists of adding braces, adding var declarations, adding the occasional semicolon, and so forth.
* Also added a default return value to the anonymous function in addRightClickEditHandler() to keep Firebug happy.
* The allmessagesforeach() function (which is what's used on [[Special:Allmessages]] when you type something in the "Message name filter:" area) as defined could not and did not work (needs the "text" param passed in). Added this; however, it can take a few seconds to filter in Firefox, but in Internet Explorer it is exceedingly slow to filter (e.g.: timed at 2 minutes and 30 seconds at 100% CPU usage on a 2 GHz machine to filter on the letter "e"). Will log a bug for this very shortly.
Andrew Garrett [Wed, 15 Nov 2006 06:46:21 +0000 (06:46 +0000)]
wfMsg -> wfMsgForContent for code added in r17609
Tim Starling [Wed, 15 Nov 2006 05:43:04 +0000 (05:43 +0000)]
A few small changes
Nick Jenkins [Wed, 15 Nov 2006 04:06:00 +0000 (04:06 +0000)]
* Add printing the names of tests whose status has just changed when using "--record" option.
* Make $wgRawHtml testable by parserTests.
* Add a variety of new tests, some of which will fail and some of which will succeed. (Please feel free to edit expected test results if you think they are wrong, especially the subpage ones).
Rotem Liss [Tue, 14 Nov 2006 12:29:18 +0000 (12:29 +0000)]
Update.
Nick Jenkins [Tue, 14 Nov 2006 07:21:40 +0000 (07:21 +0000)]
Prevent PHP Notice: "Uninitialized string offset: 0 in includes/Linker.php on line 954" in error_reporting(E_ALL) mode, when doing a "Show Preview" with the edit summary as just "[[]]".
Nick Jenkins [Tue, 14 Nov 2006 06:57:46 +0000 (06:57 +0000)]
Prevent PHP notice on undefined $subjectpreview and $summarypreview variables in error_reporting(E_ALL) mode.
Aryeh Gregor [Tue, 14 Nov 2006 06:33:11 +0000 (06:33 +0000)]
(bug 7811) Allow preview of edit summaries. Slight tweak added to stylesheet for Monobook but no others; possibly some small margins would be good additions to other skins, but it should look fine in all.
Aryeh Gregor [Tue, 14 Nov 2006 06:10:24 +0000 (06:10 +0000)]
Remove commented-out function from wikibits that I accidentally left in the code a while back.
Greg Sabino Mullane [Tue, 14 Nov 2006 03:03:44 +0000 (03:03 +0000)]
Add in 'binary' mysql schema.
Rotem Liss [Mon, 13 Nov 2006 15:08:44 +0000 (15:08 +0000)]
Old typo.
Rotem Liss [Mon, 13 Nov 2006 14:38:47 +0000 (14:38 +0000)]
Update.
Tim Starling [Mon, 13 Nov 2006 14:29:18 +0000 (14:29 +0000)]
Fixed EDIT_AUTOSUMMARY use, what did you think it was for? Fixed division by zero.
Andrew Garrett [Mon, 13 Nov 2006 11:08:09 +0000 (11:08 +0000)]
Bloody hell, not another pretend feature
Andrew Garrett [Mon, 13 Nov 2006 11:07:10 +0000 (11:07 +0000)]
* Add auto-summaries to blankings and large removals without summaries.
Nick Jenkins [Mon, 13 Nov 2006 09:33:10 +0000 (09:33 +0000)]
* Sync parserTests expected image results with r17524.
* On further consideration, the current "HTML Hex character encoding" behaviour is fine, and there's no real reason to convert HTML Hex encodings to ASCII.
* However the handling of "|" chars in external URLs in image comments will leave an unmatched </a> tag.
Andrew Garrett [Mon, 13 Nov 2006 06:44:37 +0000 (06:44 +0000)]
Make pretend feature from last commit actually exist
Andrew Garrett [Mon, 13 Nov 2006 06:43:23 +0000 (06:43 +0000)]
Made autoblocks block account creation if the user block has that bit set.
Aryeh Gregor [Sun, 12 Nov 2006 22:41:16 +0000 (22:41 +0000)]
Tweak last commit: remove SWF from videos, account for PDFs with ? or #
Aryeh Gregor [Sun, 12 Nov 2006 22:35:18 +0000 (22:35 +0000)]
(bug 1578) Add different icons for external links to audio, video, or PDF in Monobook using CSS attribute selectors. Icons by flamurai <flamurai@gmail.com>.
Niklas Laxström [Sun, 12 Nov 2006 18:43:06 +0000 (18:43 +0000)]
* Updates to Slovak translation from helix84
Rotem Liss [Sun, 12 Nov 2006 18:26:06 +0000 (18:26 +0000)]
Update.
Rotem Liss [Sun, 12 Nov 2006 18:24:14 +0000 (18:24 +0000)]
Using a shorter message, to prevent the block form from getting too wide (should fix this bug).
Rotem Liss [Sun, 12 Nov 2006 16:33:29 +0000 (16:33 +0000)]
Fixing the commandLine.inc inclusion to be like the other files.
Brion Vibber [Sun, 12 Nov 2006 15:21:40 +0000 (15:21 +0000)]
and bump style version again to compensate
Brion Vibber [Sun, 12 Nov 2006 15:20:21 +0000 (15:20 +0000)]
Revert 17507 and 17518; more weird screwing about with headers, messing up styles.
Can we maybe stop playing with this on trunk?
Rotem Liss [Sun, 12 Nov 2006 14:00:29 +0000 (14:00 +0000)]
Update.
Andrew Garrett [Sun, 12 Nov 2006 11:32:57 +0000 (11:32 +0000)]
(bug 7882) Japanese message updates, checked by Suisui.
Tim Starling [Sun, 12 Nov 2006 10:51:07 +0000 (10:51 +0000)]
removed wikisql user
Tim Starling [Sun, 12 Nov 2006 10:50:01 +0000 (10:50 +0000)]
allow URL purging
Tim Starling [Sun, 12 Nov 2006 10:47:10 +0000 (10:47 +0000)]
profiling
Tim Starling [Sun, 12 Nov 2006 10:44:48 +0000 (10:44 +0000)]
Set content type on error messages, and include a trailing newline
Aryeh Gregor [Sun, 12 Nov 2006 03:16:31 +0000 (03:16 +0000)]
(bug 3687) Add distinct heading for media files in category display.
Robert Stojnić [Sun, 12 Nov 2006 00:00:33 +0000 (00:00 +0000)]
Fix some errors in special pages translations.
Robert Stojnić [Sat, 11 Nov 2006 23:51:34 +0000 (23:51 +0000)]
Update Serbian messages.
Yuri Astrakhan [Sat, 11 Nov 2006 22:08:36 +0000 (22:08 +0000)]
missed indexInfo() call.
Brion Vibber [Sat, 11 Nov 2006 22:07:55 +0000 (22:07 +0000)]
* switched 'anon-only' block mode to default for IP blocks