Siebrand Mazeland [Mon, 22 Sep 2008 22:09:55 +0000 (22:09 +0000)]
Revert 41164: PHP Notice: Undefined property: ForeignAPIRepo::$repo in includes/filerepo/ForeignAPIRepo.php on line 143
Greg Sabino Mullane [Mon, 22 Sep 2008 20:57:36 +0000 (20:57 +0000)]
Sites are unlikely to have over 2 billion active users
Aaron Schulz [Mon, 22 Sep 2008 20:38:39 +0000 (20:38 +0000)]
Fill in blocklist from submit/url (bug 15611)
Chad Horohoe [Mon, 22 Sep 2008 20:22:10 +0000 (20:22 +0000)]
Add ForeignAPIRepo::canCacheThumbs() method. Cleaner interface and removes some code duplication.
Chad Horohoe [Mon, 22 Sep 2008 17:01:44 +0000 (17:01 +0000)]
Call Xml class directly, rather than the global function.
Raimond Spekking [Mon, 22 Sep 2008 16:16:37 +0000 (16:16 +0000)]
Add a link to edit the proction reason list
Chad Horohoe [Mon, 22 Sep 2008 15:48:07 +0000 (15:48 +0000)]
RELEASE-NOTES for last commit.
Chad Horohoe [Mon, 22 Sep 2008 15:44:13 +0000 (15:44 +0000)]
Make file_get_contents() respect our timeout settings. Otherwise, we'll get 3 minute waits for timeouts potentially, which is icky.
Aaron Schulz [Mon, 22 Sep 2008 14:37:05 +0000 (14:37 +0000)]
rev_deleted security improvements as well as fix for rawpages
Aaron Schulz [Mon, 22 Sep 2008 14:24:18 +0000 (14:24 +0000)]
Remove Revision::revText() and move functionality to getText()
Aaron Schulz [Mon, 22 Sep 2008 13:33:06 +0000 (13:33 +0000)]
Add comment
Aaron Schulz [Mon, 22 Sep 2008 13:21:53 +0000 (13:21 +0000)]
Apply account creation blocks to users (bug 13611)
Aaron Schulz [Mon, 22 Sep 2008 12:41:33 +0000 (12:41 +0000)]
Use IP::isIPAddress() to catch ranges and therefore show block/log links. (bug 13156)
Aaron Schulz [Mon, 22 Sep 2008 12:22:18 +0000 (12:22 +0000)]
Refactor RC2UDP code some
Raimond Spekking [Mon, 22 Sep 2008 11:54:10 +0000 (11:54 +0000)]
* Add loadAllMessages, neede for usergroups definded in extensions
* Add CSS classes per row to allow better customizations
Alexandre Emsenhuber [Mon, 22 Sep 2008 08:41:09 +0000 (08:41 +0000)]
Remove $wgCachedMessageArrays from DefaultSettings.php, there's no other occurrence of this variable. Seems that it was removed in r15823.
Rotem Liss [Mon, 22 Sep 2008 07:25:11 +0000 (07:25 +0000)]
Localization update.
Tim Starling [Mon, 22 Sep 2008 04:52:51 +0000 (04:52 +0000)]
* Fix some documentation
* Fix K&R style braces, since demon started, we may as well finish. This was one of the last files I wrote before I was converted to Brion-style braces.
* Renamed a variable
Greg Sabino Mullane [Mon, 22 Sep 2008 03:15:17 +0000 (03:15 +0000)]
Return numeric version only.
Aaron Schulz [Sun, 21 Sep 2008 22:56:59 +0000 (22:56 +0000)]
rc_log_type can be null, and NULL != 'x' is treated as false, which borked the count. (bug 15682)
Siebrand Mazeland [Sun, 21 Sep 2008 22:56:28 +0000 (22:56 +0000)]
(bug 14475) Clarify the email message for temporary passwords
Siebrand Mazeland [Sun, 21 Sep 2008 22:48:31 +0000 (22:48 +0000)]
(bug 15169) datePreferences for Korean.
Siebrand Mazeland [Sun, 21 Sep 2008 22:41:19 +0000 (22:41 +0000)]
Oops. Let's not forget those nasty namespace fallbacks.
Siebrand Mazeland [Sun, 21 Sep 2008 22:36:28 +0000 (22:36 +0000)]
Localisation updates from Betawiki
Matt Johnston [Sun, 21 Sep 2008 20:25:59 +0000 (20:25 +0000)]
(Bug 15650) Limit length of displayed deletion log while creating a new page
Very similair to Bug 14638 and r40944, for block form
Alexandre Emsenhuber [Sun, 21 Sep 2008 20:25:21 +0000 (20:25 +0000)]
Fatal error: Call to undefined function wfMemc() in includes/Block.php on line 550
Chad Horohoe [Sun, 21 Sep 2008 20:17:08 +0000 (20:17 +0000)]
+style version for r41128
Matt Johnston [Sun, 21 Sep 2008 19:59:29 +0000 (19:59 +0000)]
(Bug 15627) Other Expiry field isn't hidden if dropdown chosen but page reloaded
Rotem Liss [Sun, 21 Sep 2008 18:35:45 +0000 (18:35 +0000)]
Localization update.
Chad Horohoe [Sun, 21 Sep 2008 17:56:24 +0000 (17:56 +0000)]
Throw an error when the source and destination pages for mergehistory are the same.
Rotem Liss [Sun, 21 Sep 2008 17:50:14 +0000 (17:50 +0000)]
Localization update.
Shinjiman [Sun, 21 Sep 2008 17:41:01 +0000 (17:41 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Siebrand Mazeland [Sun, 21 Sep 2008 15:36:29 +0000 (15:36 +0000)]
Localisation updates for core messages from Betawiki (2008-09-21 17:29 CEST)
Siebrand Mazeland [Sun, 21 Sep 2008 15:21:29 +0000 (15:21 +0000)]
Append a <sup>*</sup> if a tooltip is available
Chad Horohoe [Sun, 21 Sep 2008 15:16:32 +0000 (15:16 +0000)]
More block updates:
* Improve docs (formatExpiry() is fine, abstracting wouldn't do anything, as it would just become a wrapper for $wgLang->timeanddate())
* Abstract out some param validation from insert()
* Add an update() method to make modification of existing blocks a bit nicer.
Siebrand Mazeland [Sun, 21 Sep 2008 15:11:22 +0000 (15:11 +0000)]
Remove leftover div
Siebrand Mazeland [Sun, 21 Sep 2008 14:59:55 +0000 (14:59 +0000)]
* Add tooltips for Users and Active users, shortening the displayed text
* Add missing 'cant-block-while-blocked' from r41108
Siebrand Mazeland [Sun, 21 Sep 2008 14:55:43 +0000 (14:55 +0000)]
Fix alignment of MessagesTcy.php
Chad Horohoe [Sun, 21 Sep 2008 14:25:46 +0000 (14:25 +0000)]
Helps to actually _put_ the info into $wgMemc...
Chad Horohoe [Sun, 21 Sep 2008 14:22:23 +0000 (14:22 +0000)]
* Lots and lots of docs
* Cache the autoblock whitelist in $wgMemc
* Remove old commented out code from when 'infinity' wasn't really 'infinity' but just really far in the future
Siebrand Mazeland [Sun, 21 Sep 2008 14:21:26 +0000 (14:21 +0000)]
Remove 'Error: ' in 'cant-block-while-blocked'. Not needed.
Chad Horohoe [Sun, 21 Sep 2008 13:16:00 +0000 (13:16 +0000)]
(bug 15642) Remove ability for blocked sysops to block other users.
Aaron Schulz [Sun, 21 Sep 2008 13:00:11 +0000 (13:00 +0000)]
Run query for people that don't have $wgMiserMode on for activeusers (bug 15666)
Chad Horohoe [Sun, 21 Sep 2008 12:37:00 +0000 (12:37 +0000)]
Core msg tweak. Explain what an "active user" is.
Siebrand Mazeland [Sun, 21 Sep 2008 11:38:09 +0000 (11:38 +0000)]
Fix syntax error
Siebrand Mazeland [Sun, 21 Sep 2008 11:36:27 +0000 (11:36 +0000)]
Localisation updates for core messages from Betawiki (2008-09-21 13:19 CEST)
Tim Starling [Sun, 21 Sep 2008 09:47:46 +0000 (09:47 +0000)]
Revert r41095, the bug is there because giving an error message as the return value from Article::getContent() is a terrible hack which should never have been allowed to survive this long. Move this crap to Article::view() or something.
Tim Starling [Sun, 21 Sep 2008 09:38:55 +0000 (09:38 +0000)]
Log exceptions encountered in api.php. Check for null $wgRequest.
Niklas Laxström [Sun, 21 Sep 2008 09:18:35 +0000 (09:18 +0000)]
* An attempt to fix bug 11119
* (bug 11119) {{grammar}} broken in noarticletext(anon) when ui lang != content lang
Tim Starling [Sun, 21 Sep 2008 09:15:28 +0000 (09:15 +0000)]
Fixed more wfGetDB() calls with no arguments.
Tim Starling [Sun, 21 Sep 2008 09:06:22 +0000 (09:06 +0000)]
More specific error messages
Tim Starling [Sun, 21 Sep 2008 08:44:20 +0000 (08:44 +0000)]
wfGetDB() needs a parameter.
Tim Starling [Sun, 21 Sep 2008 08:28:21 +0000 (08:28 +0000)]
Logging tweaks
Tim Starling [Sun, 21 Sep 2008 08:10:48 +0000 (08:10 +0000)]
Debugging code left in, probably needs an option of some kind.
Tim Starling [Sun, 21 Sep 2008 07:56:09 +0000 (07:56 +0000)]
Revert r40752. Causes lock contention on site_stats and other tracking tables, probably also causes bug 15656. See wikitech-l.
Niklas Laxström [Sun, 21 Sep 2008 07:18:24 +0000 (07:18 +0000)]
* $name is not defined here
Tim Starling [Sun, 21 Sep 2008 06:42:46 +0000 (06:42 +0000)]
Revert/rewrite of r40696.
* We used to have parameters to ignore errors, but they're obsolete now that we have exceptions. Implemented ES master failover using exceptions instead.
* Changing the number of DB connection attempts from 3 to 2 for some random getConnection() calls is almost pointless, adds lots of ugly formal parameters all of the place, and misses the big picture. It should be 2 by default, based on the original rationale. Any reasonable implementation of failover should have zero timeouts per request, by storing state. Changed the default to 2, or 1 if a long timeout is set.
Aryeh Gregor [Sun, 21 Sep 2008 02:53:24 +0000 (02:53 +0000)]
Prohibit empty page titles at a low level
This adds a sanity check to EditPage::doEdit() that throws an exception if the Title's name (sans namespace) is empty. Apparently the API edit module doesn't handle this error correctly at a high level, as evidenced by page
19405691 on enwiki. I didn't try to test whether this extra check stops the particular error, but it doesn't hurt in any case.
Aryeh Gregor [Sun, 21 Sep 2008 02:53:16 +0000 (02:53 +0000)]
Whitespace/braces
Aaron Schulz [Sat, 20 Sep 2008 22:48:55 +0000 (22:48 +0000)]
* Avoid doing templatelinks query (which can get huge) twice by adding cachupdate jobs using the same query as refreshlinks jobs do
* Don't trigger recursive jobs for nulls edits
* Some whitespace tweaks
Alex Z [Sat, 20 Sep 2008 16:08:08 +0000 (16:08 +0000)]
Move protection level and protection expiry information for title protection into log_params.
Tim Starling [Sat, 20 Sep 2008 15:00:53 +0000 (15:00 +0000)]
Don't run hour-long, unlimited row-count DB queries with set_time_limit(0) in response to unauthenticated web requests on the Run them on the slave instead. Maybe we can crash the whole cluster instead of just a master or two.
Don't use DB_LAST, ever again.
Aaron Schulz [Sat, 20 Sep 2008 14:37:50 +0000 (14:37 +0000)]
Remove unnecessary transaction
Aaron Schulz [Sat, 20 Sep 2008 14:19:42 +0000 (14:19 +0000)]
Use cur_id condition alone so that it actually deletes the proper entries. (bug 15655)
Shinjiman [Sat, 20 Sep 2008 10:31:07 +0000 (10:31 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Aaron Schulz [Sat, 20 Sep 2008 09:02:35 +0000 (09:02 +0000)]
Revert r40909, still too slow for comfort
Aaron Schulz [Sat, 20 Sep 2008 08:40:39 +0000 (08:40 +0000)]
Use normal, more patient, connection attempts for master connection here
Tim Starling [Sat, 20 Sep 2008 08:33:52 +0000 (08:33 +0000)]
* Always log connection errors
* Don't try to fetch the site notice, it will fail with the current code
Tim Starling [Sat, 20 Sep 2008 07:55:14 +0000 (07:55 +0000)]
Fixed two patrol bugs:
* Return of ID instead of object from notifyNew() caused markPatrolled() to fail when the master and slave are different connections
* doMarkPatrolled() incorrectly checked for the patrol right instead of the autopatrol right when automatic patrol was requested.
Also fixed some formatting, more needed.
Aaron Schulz [Sat, 20 Sep 2008 07:31:44 +0000 (07:31 +0000)]
Add missing wfProfileOut( __METHOD__ );
Victor Vasiliev [Sat, 20 Sep 2008 07:22:33 +0000 (07:22 +0000)]
Add class to rows so admins can hide groups from Special:Statistics.
Aaron Schulz [Sat, 20 Sep 2008 06:52:01 +0000 (06:52 +0000)]
Fix regression from r40636: footer is now parsed again
Tim Starling [Sat, 20 Sep 2008 06:18:43 +0000 (06:18 +0000)]
Don't double-escape search terms before highlighting. It's done once already SearchResultSet::termMatches(). Doing it twice results in / -> \/ -> \\/, literal backslash followed by end of regex. Not obvious in SearchMySQL because of stripForSearch(), but visible in MWSearch.
The fact that it's done in termMatches() already is hackish and undocumented, but I won't change it right now.
Tim Starling [Sat, 20 Sep 2008 05:44:29 +0000 (05:44 +0000)]
Fixed warning. QueryPage subclasses are required to allow construction with no constructor parameters. This property is used by maintenance/updateSpecialPages.php.
Tim Starling [Sat, 20 Sep 2008 05:32:30 +0000 (05:32 +0000)]
Fix fatal error, addNewUserLogEntryAutoCreate is invoked non-statically from CentralAuth and uses $this
Chad Horohoe [Sat, 20 Sep 2008 04:04:51 +0000 (04:04 +0000)]
+doc
Chad Horohoe [Sat, 20 Sep 2008 03:57:16 +0000 (03:57 +0000)]
Lots of doc updates. Documented where I knew what it did. Added @see parameters to all of these wrappers for doxygen.
Tim Starling [Sat, 20 Sep 2008 03:49:48 +0000 (03:49 +0000)]
Remove rage, looks unprofessional.
Chad Horohoe [Sat, 20 Sep 2008 03:44:09 +0000 (03:44 +0000)]
Fix more doxygen stuff.
Tim Starling [Sat, 20 Sep 2008 02:55:02 +0000 (02:55 +0000)]
Reverted r40719, plainly flawed, for instance the hard-coded references to index.php have no place if the point is to make it work for other entry points.
Brion Vibber [Sat, 20 Sep 2008 00:05:04 +0000 (00:05 +0000)]
wrap some long lines
Chad Horohoe [Fri, 19 Sep 2008 19:06:57 +0000 (19:06 +0000)]
Cleanup to r41041. escape-noentities => escapenoentities
Chad Horohoe [Fri, 19 Sep 2008 18:56:20 +0000 (18:56 +0000)]
+4 docs, -4 @todo's
Brion Vibber [Fri, 19 Sep 2008 18:47:47 +0000 (18:47 +0000)]
Quickie example adding $wgLang->commaList() to encapsulate use of 'comma-separator' message.
Fixme: being in a hurry, I didn't make it work correctly for non-UI languages. It should grab from the appropriate lang, not just wfMsgExt.
Brion Vibber [Fri, 19 Sep 2008 17:13:06 +0000 (17:13 +0000)]
Drop $wgDBminWordLen from DefaultSettings.php -- hasn't been used since 1.6 dropped MySQL 3.x support.
Aaron Schulz [Fri, 19 Sep 2008 13:49:10 +0000 (13:49 +0000)]
opps, use trim() instead
Aaron Schulz [Fri, 19 Sep 2008 13:46:26 +0000 (13:46 +0000)]
Tweak edit comment space
Chad Horohoe [Fri, 19 Sep 2008 13:39:30 +0000 (13:39 +0000)]
Add accessor to $rootElement, rather than accessing it directly.
Aaron Schulz [Fri, 19 Sep 2008 11:42:24 +0000 (11:42 +0000)]
Clean up inDnsBlacklist()
Aaron Schulz [Fri, 19 Sep 2008 10:13:32 +0000 (10:13 +0000)]
Remove some individual transactions
Chad Horohoe [Fri, 19 Sep 2008 00:21:03 +0000 (00:21 +0000)]
Fix some doxygen stuff.
Aaron Schulz [Fri, 19 Sep 2008 00:11:41 +0000 (00:11 +0000)]
* Clean up patrol code to not possibly log twice (depended on slave lag)
* Make notifyEdit() return the whole RC object
* Spacing tweaks
* Wrap patrolling in a transaction
Aaron Schulz [Thu, 18 Sep 2008 23:43:41 +0000 (23:43 +0000)]
Wrap $log->addEntry() in transaction
Aaron Schulz [Thu, 18 Sep 2008 21:48:55 +0000 (21:48 +0000)]
Tweak report
Alex Z [Thu, 18 Sep 2008 21:30:51 +0000 (21:30 +0000)]
*Don't let the API action=protect set actions that aren't in $wgRestrictionTypes or levels not in $wgRestrictionLevels
*Pass an array to Article::updateRestrictions for the expiry. Though it should allow for separate expiry times, like the normal UI.
Aaron Schulz [Thu, 18 Sep 2008 21:12:29 +0000 (21:12 +0000)]
improve log dupe check
Aaron Schulz [Thu, 18 Sep 2008 20:56:49 +0000 (20:56 +0000)]
Comment out log_user_text stuff for now
Aaron Schulz [Thu, 18 Sep 2008 20:52:34 +0000 (20:52 +0000)]
* Add support for log importing
* Improve accuracy of revision duplicate check
* Some minor cleanup and re-organizing
Alex Z [Thu, 18 Sep 2008 20:28:52 +0000 (20:28 +0000)]
(bug 12678) Don't show the upload link in the toolbox if the user is not allowed to upload.
Brion Vibber [Thu, 18 Sep 2008 19:38:56 +0000 (19:38 +0000)]
Back out r41001 for the moment ("Add log_user_text. Useful for log dumps, which are needed by rev_deleted")
If applied in one piece, it should probably fill in log_user_text... but that would be very slow in production environments.
If it has to be able to work with an online update in production, it should probably allow for a NULL log_user_text value rather than '', which is eery