Brion Vibber [Tue, 29 Jan 2008 00:49:06 +0000 (00:49 +0000)]
Replacing a live hack in wfIncrStats:
Add $wgStatsMethod to control how (and whether) to update the stats.
Setting to 'cache' (the default) gives the previous behavior of updating in $wgMemc.
Setting to 'udp' sends a line to the UDP profiling host.
Setting to false or 'disabled' or whatever will disable it.
Brion Vibber [Tue, 29 Jan 2008 00:31:26 +0000 (00:31 +0000)]
Document new hook UserCanSendEmail
Brion Vibber [Tue, 29 Jan 2008 00:29:38 +0000 (00:29 +0000)]
Apply live hack from Wikimedia codebase: add a hook UserCanSendEmail to override User::canSendEmail(); make canReceiveEmail() indenpedent of sending permission check.
Brion Vibber [Tue, 29 Jan 2008 00:26:13 +0000 (00:26 +0000)]
Apply live hack from Wikimedia codebase: bump HTTP cache expiry on OpenSearch results from 5 to 10 minutes, and send a Cache-Control header as well as Expires for better squid support
Brion Vibber [Tue, 29 Jan 2008 00:23:28 +0000 (00:23 +0000)]
Tweak to nextJobDB: don't explode on a system where $wgAlternateMaster array isn't set up; just use $wgDBserver.
Brion Vibber [Tue, 29 Jan 2008 00:22:03 +0000 (00:22 +0000)]
Apply live hack from Wikimedia codebase: pass a database name when connecting to various masters.
Brion Vibber [Tue, 29 Jan 2008 00:17:34 +0000 (00:17 +0000)]
Applying live hack from Wikimedia code base: tweaks to runJobs.php. Not clear that it actually accomplishes anything of substance, but what the hey.
Brion Vibber [Tue, 29 Jan 2008 00:13:33 +0000 (00:13 +0000)]
Applying live hack from Wikimedia code base: option and reporting tweaks for populateSha1.php
Brion Vibber [Tue, 29 Jan 2008 00:08:37 +0000 (00:08 +0000)]
Apply live hack from Wikimedia codebase: --debug option for dumpHTML
Raimond Spekking [Mon, 28 Jan 2008 21:42:30 +0000 (21:42 +0000)]
Localisation updates German
Brion Vibber [Mon, 28 Jan 2008 20:27:15 +0000 (20:27 +0000)]
Cleanup for r30216:
* Don't triple-escape HTML in drop-down lists :)
* Don't include empty attributes for missing optional parameters
* Use content language, not UI language, for loading predefined reasons
Roan Kattouw [Mon, 28 Jan 2008 19:05:26 +0000 (19:05 +0000)]
API: Changing all modules' getParamDescription(), getAllowedParams() and getDescription() methods to public. ApiParamInfo needs them, and some versions of PHP threw fatal errors because they were protected. Oddly, other versions didn't (maybe because the caller and the callee have a common ancestor?)
Bertrand Grondin [Mon, 28 Jan 2008 15:15:24 +0000 (15:15 +0000)]
Localisation updates for core messages from Betawiki (only skinsname messages)
Roan Kattouw [Mon, 28 Jan 2008 13:56:20 +0000 (13:56 +0000)]
(bug 12816) Adding list=random module which fetches a list of random pages. Based on a patch by Brent G.
Huji [Mon, 28 Jan 2008 12:57:02 +0000 (12:57 +0000)]
* Renaming Xml::reasonDropDown to Xml::listDropDown to make sure it doesn't imply a special usage.
* Adding support for custom name and id, custom class, and custom tabindex to Xml::listDropDown
* Changing the order of parameters Xml::listDropDown accepts.
* Updating ipblock, file deletion and page deletion forms so they all use this new Xml element rather than holding three copies of similar code.
* Removing variables which are no more used in the three above forms.
* Renaming a few variables to follow the coding style of MediaWiki.
River Tarnell [Mon, 28 Jan 2008 08:55:36 +0000 (08:55 +0000)]
$wgStyleVersion++
River Tarnell [Mon, 28 Jan 2008 08:54:19 +0000 (08:54 +0000)]
styling for various forms of <a>, mostly from monobook
Aaron Schulz [Mon, 28 Jan 2008 01:38:50 +0000 (01:38 +0000)]
More _deleted normalizing
Aaron Schulz [Mon, 28 Jan 2008 01:35:31 +0000 (01:35 +0000)]
Normalize _deleted stuff
Roan Kattouw [Sun, 27 Jan 2008 20:28:36 +0000 (20:28 +0000)]
API: Splitting of uiuser part of meta=userinfo to list=users, as discussed on the API list.
Aaron Schulz [Sun, 27 Jan 2008 19:20:48 +0000 (19:20 +0000)]
* Make rev_deleted an integer
* Add rev_deleted to updaters.inc
River Tarnell [Sun, 27 Jan 2008 17:43:28 +0000 (17:43 +0000)]
$wgStyleVersion++
River Tarnell [Sun, 27 Jan 2008 17:41:57 +0000 (17:41 +0000)]
style #p-cactions li.new a (redlinks in article actions tabs)
River Tarnell [Sun, 27 Jan 2008 17:39:58 +0000 (17:39 +0000)]
add several missing css classes from monobook
Aryeh Gregor [Sun, 27 Jan 2008 17:31:47 +0000 (17:31 +0000)]
Don't display rollback link if the user doesn't have all required permissions
Rotem Liss [Sun, 27 Jan 2008 17:18:03 +0000 (17:18 +0000)]
Fix for Special:Export so it doesn't ignore the page named '0'.
Siebrand Mazeland [Sun, 27 Jan 2008 15:29:10 +0000 (15:29 +0000)]
Localisation updates for core messages from Betawiki (2008-01-27 16:12 CET)
Bertrand Grondin [Sat, 26 Jan 2008 21:45:41 +0000 (21:45 +0000)]
Localisation updates for extensions messages from Betawiki (2008-01-17 22:22 CET)
Huji [Sat, 26 Jan 2008 20:32:44 +0000 (20:32 +0000)]
Adding new translations
Rotem Liss [Sat, 26 Jan 2008 19:51:12 +0000 (19:51 +0000)]
Update.
Victor Vasiliev [Sat, 26 Jan 2008 19:44:31 +0000 (19:44 +0000)]
Show warning if image page exists
Victor Vasiliev [Sat, 26 Jan 2008 19:27:19 +0000 (19:27 +0000)]
Introduce SajaxSearch hook
Victor Vasiliev [Sat, 26 Jan 2008 18:45:54 +0000 (18:45 +0000)]
Invalidate file cache on image redirects deletion
Tim Starling [Sat, 26 Jan 2008 05:40:51 +0000 (05:40 +0000)]
Fixed #tag support for PPNode
Shinjiman [Sat, 26 Jan 2008 03:55:58 +0000 (03:55 +0000)]
* Update Chinese translations
* Update Cantonese translations
* Update Old Chinese / Late Time Chinese translations
Tim Starling [Sat, 26 Jan 2008 01:49:17 +0000 (01:49 +0000)]
Revert removal of CPU time profiling in 29658-29661. Those 0's and 10's will add up to the correct guestimate reliably, as long as the decision as to which function gets the tick does not depend on the function. The variance of course will be larger, but it was pretty large to start with. Should fix breakage in report.py.
Brion Vibber [Sat, 26 Jan 2008 00:54:50 +0000 (00:54 +0000)]
Revert r30162 for now.
A problem with this is that it *un*watches a previously watched image under the following
circumstances:
* 'watch pages I edit' is not enabled (eg, default state)
* go to Special:Upload and select the file
* hit 'upload'
The initial check state is unchecked (since there was no initial destination name set), and this doesn't get updated to reflect the existing watch state of the previous image.
There are a couple possible ways around this. One is to compare the form's actual initial check state with the submitted check state and only apply an unwatch if there was a difference.
Another might be to do a watch state update via AJAX when a new destination filename is set in the form. This would allow the checkmark's default state to be set 'properly' for those with JS enabled in modern browsers.
Perhaps a combination should be used.
Robert Leverington [Sat, 26 Jan 2008 00:37:42 +0000 (00:37 +0000)]
Fix bug 9246 by watching a page when the upload\reupload "Watch this page" checkbox is checked and unwatching a page when it is not.
Brion Vibber [Sat, 26 Jan 2008 00:18:22 +0000 (00:18 +0000)]
Mark the bug number for export thing
Brion Vibber [Sat, 26 Jan 2008 00:17:02 +0000 (00:17 +0000)]
* Fix for restricted namespaces/pages in Special:Export
userCan('read') and userCanRead() DON'T RETURN THE SAME RESULT.
WHAT THE HELL
JESUS CRAP
NOOOOOOOOOOOO
Brion Vibber [Fri, 25 Jan 2008 23:48:17 +0000 (23:48 +0000)]
Revert r30136, 30137 (bug 12681) -- new location of message bar interferes with lock, geolocation, etc magic templates in use on Wikimedia sites. Hold off on this until there's a system for properly handling those "out of content area" magicks.
Huji [Fri, 25 Jan 2008 22:45:56 +0000 (22:45 +0000)]
(bug 12790) Page protection is not logged when edit-protection is used but move-protection is not
Huji [Fri, 25 Jan 2008 21:57:24 +0000 (21:57 +0000)]
* Added Persian translations
* Performed RebuildLanguage for En and Fa
Roan Kattouw [Fri, 25 Jan 2008 16:07:45 +0000 (16:07 +0000)]
Returning EditPage::AS_HOOK_ERROR rather than false in internalAttemptSave()
Roan Kattouw [Fri, 25 Jan 2008 12:52:14 +0000 (12:52 +0000)]
Fixing some messages in ApiBase
Roan Kattouw [Fri, 25 Jan 2008 12:28:18 +0000 (12:28 +0000)]
Change action=paraminfo's format to something that won't render invalid XML
Huji [Fri, 25 Jan 2008 11:28:45 +0000 (11:28 +0000)]
Introducing Xml::reasonDropDown
* Generates a drop-down box given the required information
* Supports marking the approrpiate option as pre-selected
* Shall be used on deletion and protection pages, where a dropdown is used to select the appropriate reason for the action
Roan Kattouw [Fri, 25 Jan 2008 10:46:39 +0000 (10:46 +0000)]
Clarifying unorthodox MIME type
Roan Kattouw [Fri, 25 Jan 2008 10:34:43 +0000 (10:34 +0000)]
Re-applying r30130, this time without the EXCEDED/EXCEEDED typo that caused a fatal error.
Tim Starling [Fri, 25 Jan 2008 10:15:46 +0000 (10:15 +0000)]
Fixed broken HTML
Raimond Spekking [Fri, 25 Jan 2008 08:56:05 +0000 (08:56 +0000)]
Localisation updates German
Tim Starling [Fri, 25 Jan 2008 07:43:23 +0000 (07:43 +0000)]
Workaround for segfault observed on parse for certain input text. Related to PHP bug 35229, but was observed in call_user_func_array() not call_user_func(). Apparently autoloading is buggy especially when invoked from an unusual context. My workaround is to trigger early autoloading using is_callable(). And if we're going to call is_callable(), we may as well do something sensible if it returns false, right?
Tim Starling [Fri, 25 Jan 2008 04:14:51 +0000 (04:14 +0000)]
* Fixed <!-- ~~~~ -->, added parser test
* Commented out memCheck()
Aryeh Gregor [Fri, 25 Jan 2008 02:59:27 +0000 (02:59 +0000)]
$wgStyleVersion!
Aryeh Gregor [Fri, 25 Jan 2008 02:52:32 +0000 (02:52 +0000)]
Reduce margin for .usermessage, since it no longer needs to be set off from the article content.
Aryeh Gregor [Fri, 25 Jan 2008 00:21:21 +0000 (00:21 +0000)]
(bug 12681) New messages bar should appear above page title, for consistency with other message boxes
Aryeh Gregor [Fri, 25 Jan 2008 00:18:54 +0000 (00:18 +0000)]
Revert 30130, completely breaks editing with fatal PHP error.
Roan Kattouw [Thu, 24 Jan 2008 20:54:33 +0000 (20:54 +0000)]
Removing some unused global $wgTitle; statements and changing $wgTitle to $this->mTitle in non-UI code. Also fixing indentation of AS_* constants.
Aryeh Gregor [Thu, 24 Jan 2008 20:14:35 +0000 (20:14 +0000)]
Avoid relying on isset(). This can cause problems with PHP's (thankfully now uncommon) register_globals setting. Instead, just give the variable a default value in the code.
Roan Kattouw [Thu, 24 Jan 2008 17:59:07 +0000 (17:59 +0000)]
API:
* Added uiuser parameter to meta=userinfo that gets information about users other than the current user.
* Pretty much completely rewrote userinfo to facilitate this
Rotem Liss [Thu, 24 Jan 2008 17:07:14 +0000 (17:07 +0000)]
Update.
Huji [Thu, 24 Jan 2008 17:06:19 +0000 (17:06 +0000)]
(bug 12753) Empty captions in MediaWiki:Sidebar result in PHP errors.
* The previous commit didn't cover the cases where the whole caption line was missing.
Siebrand Mazeland [Thu, 24 Jan 2008 16:59:42 +0000 (16:59 +0000)]
Localisation updates for core messages from Betawiki (2008-01-24 17:54 CET)
Huji [Thu, 24 Jan 2008 15:35:44 +0000 (15:35 +0000)]
(bug 12214) Add a predefined list of delete reasons to the file deletion form
Raimond Spekking [Thu, 24 Jan 2008 13:58:40 +0000 (13:58 +0000)]
partly revert of r30110. looks like an accident.
Roan Kattouw [Thu, 24 Jan 2008 13:16:34 +0000 (13:16 +0000)]
Tweaking r30119: changing txt and dbg's MIME type to text and adding txtfm and dbgfm with HTML-escaped stuff.
Roan Kattouw [Thu, 24 Jan 2008 13:12:03 +0000 (13:12 +0000)]
No need to revert r30078: HTML-formatting the data is enough. Attacks like api.php?action=paraminfo&modules=%3Cscript%3Ealert('Owned');%3C/script%3E&format=txt don't work anymore now.
Raimond Spekking [Thu, 24 Jan 2008 13:03:56 +0000 (13:03 +0000)]
Localisation updates German
Raimond Spekking [Thu, 24 Jan 2008 12:57:11 +0000 (12:57 +0000)]
* Sort elements by alphabet
* Consistent usage of XML functions
Raimond Spekking [Thu, 24 Jan 2008 12:54:18 +0000 (12:54 +0000)]
* Move special case from core to the Newuserlog extension itself.
Huji [Thu, 24 Jan 2008 12:52:53 +0000 (12:52 +0000)]
(bug 12753) Empty captions in MediaWiki:Sidebar result in PHP errors
Huji [Thu, 24 Jan 2008 11:21:36 +0000 (11:21 +0000)]
(bug 12738) Database query syntax error in maintenance/storage/compressOld.inc
Tim Starling [Thu, 24 Jan 2008 09:07:47 +0000 (09:07 +0000)]
* Make lc and uc parser functions skip strip markers
* Made ==foo==<!----> create a valid section edit link
* Changed header processing heuristics -- now double-equals signs are generally respected as header starts, and will break template invocations, and single equals signs are respected as header syntax but might not generate a section edit link.
River Tarnell [Thu, 24 Jan 2008 04:33:21 +0000 (04:33 +0000)]
slightly improved behaviour for very small browser windows: title/tab overflow will be hidden instead of wrapping to the next line
Tim Starling [Thu, 24 Jan 2008 04:33:21 +0000 (04:33 +0000)]
Fix fatal error in eval.php
Tim Starling [Thu, 24 Jan 2008 04:29:56 +0000 (04:29 +0000)]
* Factored out PPD "part" handling into its own class. Verified with differential fuzz test.
* Stabilise timestamps generated by the parser to avoid diff test false positives
* Fixed msgnw bug. Use RECOVER_ORIG.
* Fixed editintro bug. Cloning the parser in MessageCache has some side-effects that need to be corrected.
* Fixed typo in Parser_DiffTest.php
* General improvements to preprocessorFuzzTest.php
* Fixed breakage of XML output feature in Special:ExpandTemplates
River Tarnell [Thu, 24 Jan 2008 04:20:12 +0000 (04:20 +0000)]
insert a clear:both div at the bottom of the content to stop floating content from overrunning the border
Aryeh Gregor [Thu, 24 Jan 2008 02:00:33 +0000 (02:00 +0000)]
Comment tweak, remove strcmp().
Aryeh Gregor [Thu, 24 Jan 2008 01:59:35 +0000 (01:59 +0000)]
Commit some junk: spacing, braces, parentheses, other stylistic stuff.
River Tarnell [Thu, 24 Jan 2008 01:49:15 +0000 (01:49 +0000)]
rtl styling for simple
River Tarnell [Thu, 24 Jan 2008 01:45:08 +0000 (01:45 +0000)]
fix css to style .pBody instead of each portlet id explicitly; makes additional navigation portlets look correct
River Tarnell [Thu, 24 Jan 2008 01:23:22 +0000 (01:23 +0000)]
using font-sizes in points breaks text resizing in IE. instead, set the font size the same way as monobook: body sets font-size: x-small, and text is scaled back to a reasonable size (130%) in the content area. 130% produces correct alignment of #p-personal in all browsers; 127% makes a 1 pixel gap in Safari at some font sizes.
River Tarnell [Thu, 24 Jan 2008 00:51:13 +0000 (00:51 +0000)]
basic styling for rtl sites
River Tarnell [Thu, 24 Jan 2008 00:31:30 +0000 (00:31 +0000)]
add another div inside #mw_content to allow users to style font-size in the content area without breaking positioning
River Tarnell [Thu, 24 Jan 2008 00:15:56 +0000 (00:15 +0000)]
respect preferences option for underlining except in #footer. looks hella ugly, but users keep whining
River Tarnell [Thu, 24 Jan 2008 00:02:28 +0000 (00:02 +0000)]
increase the left margin for mw_contentwrapper to -15em. appears to have no effect on the layout but fixed the sidebar in IE6
Brion Vibber [Wed, 23 Jan 2008 23:45:46 +0000 (23:45 +0000)]
* Security fix for API on MSIE
Brion Vibber [Wed, 23 Jan 2008 23:06:10 +0000 (23:06 +0000)]
Revert r30078 -- formats "txt" and "dbg" dump raw unfiltered text contents into HTML output. XSS vector.
Siebrand Mazeland [Wed, 23 Jan 2008 20:57:26 +0000 (20:57 +0000)]
Localisation updates from Betawiki
* update hu magic words, trim trailing whitespace
Bryan Tong Minh [Wed, 23 Jan 2008 20:32:47 +0000 (20:32 +0000)]
ApiQueryImageInfo: Convert sha1 to base16 like before r29981
Roan Kattouw [Wed, 23 Jan 2008 20:13:58 +0000 (20:13 +0000)]
API: Added uiprop=editcount to meta=userinfo
Raimond Spekking [Wed, 23 Jan 2008 19:59:35 +0000 (19:59 +0000)]
Tweak Special:CreateAccount again. Make it smarter without the needing of a new class. Thanks to ialex.
Roan Kattouw [Wed, 23 Jan 2008 19:51:21 +0000 (19:51 +0000)]
API: Adding txt and dbg formats, imported from query.php
Raimond Spekking [Wed, 23 Jan 2008 19:42:34 +0000 (19:42 +0000)]
Fix PHP strict standard. Thanks to Siebrand.
Siebrand Mazeland [Wed, 23 Jan 2008 19:38:49 +0000 (19:38 +0000)]
Localisation updates for core messages from Betawiki (2008-01-23 20:34 CET)
Roan Kattouw [Wed, 23 Jan 2008 18:40:40 +0000 (18:40 +0000)]
API:
* Fixing buggy class instantiation in ApiParamInfo
* Adding getModules() method to ApiMain and ApiQuery
Roan Kattouw [Wed, 23 Jan 2008 17:28:45 +0000 (17:28 +0000)]
API: Adding module prefix information to action=paraminfo
Rotem Liss [Wed, 23 Jan 2008 17:27:22 +0000 (17:27 +0000)]
Update.
Roan Kattouw [Wed, 23 Jan 2008 16:59:37 +0000 (16:59 +0000)]
API: Adding parameter description to action=paraminfo output
Raimond Spekking [Wed, 23 Jan 2008 15:16:06 +0000 (15:16 +0000)]
(bug 11897) Add alias [[Special:CreateAccount]] & [[Special:Userlogin/signup]] for Special:Userlogin?type=signup