Commit graph

183 commits

Author SHA1 Message Date
Alexandre Emsenhuber
c00e4572b0 * Fix some doxygen warnings
* use spaces for identation in the middle of lines instead of tabs
2010-01-21 22:01:38 +00:00
Chad Horohoe
a4e5e935b6 Mass convert NULL -> null. Left strings and comments alone, obviously. 2009-12-11 21:07:27 +00:00
Jure Kajzer
785ad24aa7 Changed sequence names to a standard <table>_<field>_seq form.
Updated all nextSequenceValue calls with new sequence names.
OverlordQ stated he'll handle changes to Postgres scripts.
Need someone to change DB2 scripts.
2009-10-28 16:17:16 +00:00
Chad Horohoe
88bf1584a6 Revert r55459, 55467, 55469, 55518 (Page creation notification email is sent when a watched page is deleted). Breaks current setups where enotif_body is customized. Sidenote: anyone looking to do this right should redo EmailNotification::notifyOnPageChange() to just use the params array from RC, rather than tacking more crap onto this function 2009-09-11 01:04:00 +00:00
Daniel Kinzler
0234640637 adding public access methods for use by XMLRC extension. 2009-09-03 16:15:55 +00:00
Chad Horohoe
3617ab6b5c (bug 15646) Page creation notification email is sent when a watched page is deleted 2009-08-21 23:33:38 +00:00
Aaron Schulz
f741c09aa2 (bug 19214) Make sure new pages have page ID cached for getTitle() 2009-06-17 21:11:29 +00:00
Alexandre Emsenhuber
19b9a1d48d Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() to remove HTML entities left by some messages (such as colon-separator, etc.) 2009-01-25 19:00:11 +00:00
Aaron Schulz
db4b0db9d2 Added notifyRC2UDP() convenience function 2009-01-14 01:45:52 +00:00
Charles Melbye
2774c33be8 Fix a problem with a protected class method that brought up an error, and also
fixed a typo in the release notes.
2009-01-12 22:52:09 +00:00
Aaron Schulz
3dbbdca71d Just use != here 2009-01-10 22:07:12 +00:00
Aaron Schulz
6059b4d6ad Minor code style tweaks & cleanup 2009-01-09 23:18:47 +00:00
Aaron Schulz
78678afa7c Hide patrol mark if patrolling is disabled 2009-01-09 22:49:40 +00:00
Aaron Schulz
6ced476ceb Clean up log restrictions check 2009-01-09 18:38:10 +00:00
Aaron Schulz
9d9ad4dab8 Revert r45605 and generalize the ability to have logs go to UDP. 2009-01-09 18:30:47 +00:00
Aaron Schulz
97878c044f Make sure feeds reflect changes due to flaggedrevs 2009-01-09 18:05:58 +00:00
Aaron Schulz
690e741c9d Mark non-patrolled edits in feeds (bug 16604) 2009-01-09 17:47:05 +00:00
Brion Vibber
3e69f5237d Revert r44867 "Improve markpatrolled hook"
Incompatible change to existing hook (changing types of parameters passed)
2008-12-23 20:56:19 +00:00
Brion Vibber
97f77b9b1a Revert r44702, r44703, r44704 (wfInvoke and UserMailer refactor based on it) and r44715, r44721 (cleanup thereof)
As Tim notes, the weird callback setup in $wgHooks isn't really something we want to replicate or ever rely on ever again, as PHP's native callback syntax already handles things fine and is more consistent (and used extensively in the rest of MediaWiki).
May be other remaining issues with the refactor on top of bugs already discovered, but if it's going to be refactored to use callbacks it should be done using regular callbacks.
2008-12-23 18:08:43 +00:00
Aaron Schulz
c29b5243ab Improve markpatrolled hook 2008-12-21 08:49:45 +00:00
Aaron Schulz
fdcb42815d Removed redundant mExtra init 2008-12-20 07:46:45 +00:00
David McCabe
43c9235283 UserMailer bigtime refactor. Please test. 2008-12-17 07:08:16 +00:00
Brion Vibber
22697961be Reverting r44454 "(bug 14843) IRC should flag redirects with "R" like it does with bots, etc."
This doesn't work as intended; when editing existing articles, this'll pull the *previous* redirection state of the article, rather than the current state, so it's wrong whenever a page is changed into, or away from, being a redirect.
2008-12-11 18:44:51 +00:00
Chad Horohoe
87d9c352c1 (bug 14843) IRC should flag redirects with "R" like it does with bots, etc. 2008-12-11 17:42:49 +00:00
Brion Vibber
9853e055ed add debug lines for UDP output so it can be more easily tested offline 2008-12-10 18:49:16 +00:00
Ilmari Karonen
feb45a7d93 revert r44412 and part of r44406: keep the improved new page URLs, but use the old getInternalURL()/preg_replace() hack to generate them 2008-12-10 18:41:28 +00:00
Ilmari Karonen
c73ca3c446 Seems r44406 would've broken the RC feed on secure.wikimedia org: fix by introducing a new config variable $wgRC2UDPScriptUrl (defaulting to $wgServer . $wgScript if not set).
NOTE: Wikimedia's secure.php needs to be updated to use the new variable.  It might be possible to retire the fixupSquidUrl() hack once this is done, though I'm not sure if anything else relies on it.
2008-12-10 17:03:57 +00:00
Ilmari Karonen
dbf477d5cc (bug 4253, bug 16586) Don't repeat titles of new pages in URLs in the RC->IRC feed, use the shorter and more useful revision ID instead.
Also simplify URL construction: old code used to call Title::getInternalURL() to build the URLs and then undo most of the work with preg_replace().
(TODO: Maybe consider introducing new global $wgIRCLineURLPrefix to optionally override the $wgInternalServer.$wgScript prefix?)
2008-12-10 15:56:02 +00:00
David McCabe
64d53b6569 Revert r44386; depends on wfInvoke, also reverted. 2008-12-10 06:40:05 +00:00
David McCabe
cbafadf8d6 Refactored UserMailer.php. Please let me know if this breaks anything. 2008-12-10 06:02:14 +00:00
Aaron Schulz
468ba99c39 Reduce excessive RC write queries 2008-11-27 18:55:47 +00:00
Aaron Schulz
371a23a35f Refactor getCharacterDifference() 2008-11-16 23:18:43 +00:00
Tim Starling
bf27a2741f Improved $wgRC2UDPInterwikiPrefix feature, so that it can actually be a prefix and not just a boolean. Documented RC2UDP settings. 2008-11-13 08:51:10 +00:00
Raimond Spekking
533cbdbdf8 Fix for r43064. 2008-11-02 06:46:02 +00:00
Alex Z
7aae9cb109 Put the rcid in the URL if $wgUseNPPatrol or $wgUseRCPatrol is used. 2008-11-02 03:37:24 +00:00
Charles Melbye
1f4d29361e Added a new configuration setting called $wgRC2UDPInterwikiPrefix that will
prefix the page name in the UDP feed with the Interwiki prefix specified
in the $wgLocalInterwiki variable.
2008-10-28 22:19:30 +00:00
Alex Z
f2c3df36d0 partial revert of r42695, don't trim the comment 2008-10-28 02:38:59 +00:00
Alex Z
8036450877 (bug 4253) - recentchanges IRC:
* Don't include the title in diff ULRs
* If the message is still too long, trim the comment.
2008-10-27 22:41:17 +00:00
Aaron Schulz
551e97bebc rc_deleted must be given; not secure otherwise 2008-10-27 19:59:54 +00:00
Brion Vibber
90e12d48c7 Back out r42182 for now "Move UDP stuff to new UDP class"
UDP isn't a very clear name for this, especially since we use UDP protocols for multiple different things!

This class should probably be genericized a bit for _change notifications_, which there might be multiple backend implementations for, including the UDP->IRC bot gateway.
2008-10-19 23:59:39 +00:00
Aaron Schulz
7204624c1b Code/style cleanup 2008-10-17 23:52:57 +00:00
Aaron Schulz
46a4a8bb7e Move UDP stuff to new UDP class 2008-10-17 23:46:21 +00:00
Brion Vibber
f18a20e633 Pull out incorrect fixme comments from r42075 2008-10-15 21:05:39 +00:00
Chad Horohoe
0f77d87015 Let's do this again, without all the breakages... (bug 15925) Properly bold rc bytes changed in all cases. Patch by Happy-melon and FunPika. 2008-10-15 20:38:50 +00:00
Brion Vibber
0b2ba3f5a6 Revert broken r42078 "(bug 15925) Properly bold rc bytes changed in all cases. Patch by Happy-melon."
Bad HTML output breaks things entirely, plus the code is much harder to read. Plus it's unclear if this behavior is desirable.
2008-10-15 00:06:51 +00:00
Chad Horohoe
a5f3d4502b (bug 15925) Properly bold rc bytes changed in all cases. Patch by Happy-melon. 2008-10-14 12:56:25 +00:00
Andrew Garrett
e7dabc458d Mark a FIXME in RecentChange.php - We shouldn't be treating log entries as page changes. This causes a few problems with deletions. 2008-10-14 10:50:26 +00:00
Aaron Schulz
20e9f00c82 Allow no prefix here 2008-10-13 17:27:44 +00:00
Aaron Schulz
daefe66096 Refactor sendToUDP() some more 2008-10-13 06:17:42 +00:00
Aaron Schulz
655fec7f30 (bug 15428) Fix erroneous coloring of unrelated items due to text matches. Only do the links. 2008-10-11 23:30:38 +00:00