Commit graph

290 commits

Author SHA1 Message Date
Niklas Laxström
eb1c7640db * Skip the plural parsing for bytes also when not in miser mode and the message is not customised 2009-04-07 06:47:45 +00:00
Niklas Laxström
c0b8603ca6 * (bug 18377) Time in Enhanced ChangesList lacking localisation 2009-04-07 06:43:39 +00:00
Aryeh Gregor
8dccd7be37 Remove unused var 2009-03-29 20:29:54 +00:00
Aryeh Gregor
f1ca9cb441 Pass query directly to getLinkUrl() 2009-03-29 17:13:13 +00:00
Aryeh Gregor
7508ef184e Remove a couple of link() calls in enhanced RC
diff and cur links are now created using raw HTML instead of link(),
which they didn't really need anyway.  I didn't see any other obvious
candidates for conversion to raw HTML, since other things tend to need
fancy classes and have lots of other logic.  It's possible link() could
be made faster, too.
2009-03-29 17:09:47 +00:00
Aryeh Gregor
e53d3fe26e Use link() instead of make*Link*()
Preparatory to some optimization work.  Also fix a bug in last commit,
so if this causes problems, revert that one too.
2009-03-29 16:02:16 +00:00
Aryeh Gregor
f4ad19c670 Remove some makeKnownLinkObj() invocations in RC
Was being called for all rows, then thrown away for any rows that
weren't normal edits (logs, etc.).
2009-03-29 15:37:47 +00:00
Domas Mituzas
bf1401c262 fix some of RC rollback madness:
* Avoid extensive permission checks, just rely on User::isAllowed("rollback")
* Preload page_latest data in initial RC query, no need to run thousands of queries afterwards
2009-03-29 11:02:16 +00:00
Domas Mituzas
156e8ab0ab don't do custom number formatting for bytes changed in misermode 2009-03-29 10:11:19 +00:00
Aaron Schulz
c78113b7cd Redundancy/perm cleanups to insertRollback() 2009-03-03 20:12:37 +00:00
Alexandre Emsenhuber
45bb5b19b2 * Add some profiling
* Set the title for the revision created in ChangesList::insertRollback() so that it doesn't need an extra query to fecth it
2009-02-20 13:00:58 +00:00
Andrew Garrett
2c06966b97 Implement tag display for EnhancedChangesList -- TODO implement the CSS styling of tags for EnhancedChangesList. Incidentally, why do we have two methods for formatting a diff for EnhancedChangesList? 2009-02-18 04:39:52 +00:00
Siebrand Mazeland
3abcb9db01 * Recommit r39503. (bug 14468) Lines in classic RecentChanges and Watchlist now have classes "mw-line-odd" and "mw-line-even" to make styling using css possible. Implemented in OldChangesList::recentChangesLine using an additional parameter, while keeping behaviour for other uses unchanged. Did not see any use adding this to ChangesList::recentChangesLine.
* keep RELEASE-NOTES lines under 80 characters
2009-02-08 15:55:32 +00:00
Andrew Garrett
aa5bd3f47a Abuse Filter changes designed for testing filters against real data:
* Add searching and filtering functionality to the existing 'test' interface.
* Add an 'examine' interface designed for testing filters against a previous change, selectable through the search interface in either the 'test' or the 'examine' view.
* Minor enabling change in ChangesList core, to allow subclassing.
2009-01-29 22:44:31 +00:00
Aaron Schulz
8794e3f68f Use quickUserCan() at some possible performance hotspots (rollback links). Unlikely for anyone to notice anything except maybe getting a permission error once every blue moon. 2009-01-28 23:55:17 +00:00
Andrew Garrett
534621729c Add Special:AbuseFilter/test, which allows (trusted for now, due to DoS potential) users to enter a filter, and have it checked against the last 100 RecentChanges items while-u-wait.
Some related cleanup to change tagging in ChangesList.
2009-01-28 23:54:41 +00:00
Andrew Garrett
9a3c1fcede Branch merge of change-tagging branch with trunk
-- Introduce tagging of individual changes (revisions, logs, and on recentchanges). The tags are customisable, and currently settable by the Abuse Filter and by the TorBlock extension. The tags can be styled on the various pages on which they appear.
-- Introduces a schema change, three new tables (valid_tag, change_tag, and tag_summary).
2009-01-28 19:08:18 +00:00
Alexandre Emsenhuber
0218809728 * fix usage of 'number_of_watching_users_RCview' message to correspond with the other one in the same file
* use $this->message['hist'] rather than wfMsg( 'hist' )
* Whitespaces tweaks
2009-01-25 16:34:21 +00:00
Aaron Schulz
6221858e83 * Added rollback links to changes lists (bug 9305)
* Remove commend code duplication
2009-01-20 04:01:59 +00:00
Aaron Schulz
6059b4d6ad Minor code style tweaks & cleanup 2009-01-09 23:18:47 +00:00
Brion Vibber
3bcb264f89 Cleanup to r44993 -- avoid using '$x = foo()' in an if() condition on general principle. :) 2008-12-30 18:43:35 +00:00
Aaron Schulz
78d8b568c4 * Don't rebuild the character size html twice
* Break lines so this code looks like a marginally better brand of a dog's breakfast
2008-12-23 23:59:20 +00:00
Aaron Schulz
4bc44c4c6e * Tweaks from profiling
* Remove extract() call
* Break some lines
2008-12-20 08:25:39 +00:00
Aaron Schulz
abe2627248 Fix for r44775: remove debug line 2008-12-18 21:30:40 +00:00
Alexandre Emsenhuber
3a438f8b39 Moving check for "$rc_type == RC_LOG" before check for special pages since log entries can now have a tagert in NS_SPECIAL, this happens for log item deletion (rev_deleted stuff) and thus breaking recent changes display, (see the current version of http://test.wikipedia.org/wiki/Special:RecentChanges, where the deletion log appears as "block log" since the last entry is hiding an item from the block log) 2008-12-18 19:45:58 +00:00
Aaron Schulz
f21ef9a858 Fix log list regression and fix funky $allLogs case while at it 2008-12-11 21:34:15 +00:00
Brion Vibber
cff7bfe3e8 Revert r44119 "Remove extract() comment"
extract() is pretty much the devil and shouldn't ever be used for safe, legible code because it makes it much more difficult to analyse the code -- you have to run around trying to track down the source of local variables and there's generally a lot of pain.
Removing the FIXME comment isn't a substitute for fixing it. ;)
2008-12-10 19:41:20 +00:00
Aaron Schulz
be40995b13 Remove extract() comment 2008-12-01 17:02:05 +00:00
Aaron Schulz
748e6b7751 * Use insertArticleLink() to remove duplication
* Break some long lines
2008-11-29 00:17:10 +00:00
Aaron Schulz
ee1ed3fd12 Various minor code style tweaks and cleanup to RC 2008-11-28 23:06:25 +00:00
Raimond Spekking
18f3c66c39 * (bug 11728) Unify layout of enhanced watchlist/recent changes:
Changed from:
  Time  Page (4 changes) . . (+bytes) . . (hist) [list of editors]
To:
  Time  Page (4 changes; hist) . . (+bytes) . . [list of editors]

Use consistent message for the history link
Patch by Mormegil
2008-11-18 12:54:53 +00:00
Aaron Schulz
371a23a35f Refactor getCharacterDifference() 2008-11-16 23:18:43 +00:00
Brion Vibber
1e6d22e509 Revert class cruft in r43327 :)
I think I'd rather see consistent classes for common UI elements, regardless of where they appear.
For instance 'mw-rc-usertoollinks' ... We have user tool links in a hojillion places; they should all have *the same* class. If you need to distinguish those on RC from those on another page, you use a fancier selector that grabs only those in the special you want.
2008-11-14 02:21:45 +00:00
Raimond Spekking
fbc4b1ecd3 Use existing function. Now without PHP error. Thanks to Ialex. 2008-11-09 21:44:56 +00:00
Raimond Spekking
56f811163b self revert r43332 due to a PHP Strict Standards error 2008-11-09 21:26:14 +00:00
Raimond Spekking
7e0859664f Use existing function 2008-11-09 21:16:10 +00:00
Raimond Spekking
83765b1b0d Add some CSS classes for easier styling 2008-11-09 17:49:55 +00:00
Alexandre Emsenhuber
16a282d244 Use $wgJsMimeType for JavaScript's Mime type 2008-10-28 12:41:51 +00:00
Brion Vibber
4d1f80de61 Tweak for r42592 (re-adding alt text for arrows on enhanced RC)
Use a non-breaking space instead of plain space for the alt text for the spacer image; the plain space seems to get lost (tested in firefox 3). :P
Note this was broken before, it's not a regression. :)
2008-10-26 02:53:14 +00:00
Alex Z
2a2fa2785a restore image alt text on enhanced RC, add title to <img>s so IE won't hide it with the alt text. 2008-10-26 02:41:43 +00:00
Alex Z
ecf1d0d0bb Fix for r42528 (enhanced RC JS/fallback fixes), use "visibility:hidden" rather than "display:none" to hide the arrow for non-JS for proper spacing. 2008-10-25 20:57:56 +00:00
Brion Vibber
05ec0378d7 Hold back r42568 for now "Re-committing r42528:" (enhanced RC no-JS fallbacks)
Still not quite right -- entries don't line up correctly with JS mode out. Didn't do much further testing on it beyond that since I'm trying to get trunk working. :)
2008-10-25 20:30:19 +00:00
Alex Z
2526d518e1 Re-committing r42528:
*Add "return false" to the onclick handler, which fixes the reason it was reverted (link causes Firefox to scroll to the top of the page) for JS-enabled browsers
*Hide both arrows for JS-disabled so the link (which does nothing without JS) isn't there to mess up scrolling or break horribly with paranoid browser extensions
*Tested for compatibility in Firefox 3.0.3, IE7, Safari 3.1.2, and Opera 9.52.
2008-10-25 19:05:05 +00:00
Tim Starling
4fcdceb81a Reverted r42528. Links with href="#" make firefox scroll to the top of the page, regardless of onclick handler. 2008-10-25 05:52:54 +00:00
Alex Z
5db8be6e7b Re-committing r42514:
(bug 16073) * Use onclick handler for expand/collapse in enhanced recentchanges.
* Hide the expandable content with JavaScript for better fallback if JS is disabled for whatever reason.
* Move enhancedchanges JS to separate file.
* Less cryptic id names.

with some tweaks suggested by Brion and Danny B on the bug.
2008-10-25 02:27:27 +00:00
Brion Vibber
846a61ae49 Revert r42514 for now "(bug 16073) * Use onclick handler for expand/collapse in enhanced recentchanges."
A few issues I noted:
* The expand/contract icons no longer have regular link behavior (eg no hand icon, can't be reached by keyboard tabbing)
* It looks like the stuff-to-be-hidden doesn't get hidden until after the </body>, which feels a little sketchy to me. On long lists and slow connections you may see odd behavior with the items being shown expanded, then suddenly hiding when things reach the end. Adding the style immediately in the JS instead of waiting for the body load completion should avoid that
* mw-rc-jshidden class seems to be applied to things that shouldn't have it sincec they are explicitly given display:none?
* Instead of style='display:none' etc, consider using clear classes for expanded and hidden modes, then switch the classes instead of the styles in the JS
2008-10-25 00:10:07 +00:00
Alex Z
3798bcc79b (bug 16073) * Use onclick handler for expand/collapse in enhanced recentchanges.
* Hide the expandable content with JavaScript for better fallback if JS is disabled for whatever reason.
* Move enhancedchanges JS to separate file.
* Less cryptic id names.
2008-10-24 23:10:12 +00:00
Tim Starling
6730363fa1 Revert r40627, r40551, r40536, r40535 (mark non-autoconfirmed users in RC and watchlist with an orange asterisk). Potentially slow, potentially controversial, so it needs a configuration option to enable/disable it. 2008-09-16 05:56:43 +00:00
Aaron Schulz
965ede5d2d Remove syntax typo that made line dupes 2008-09-15 19:27:32 +00:00
Aaron Schulz
1c881494fe Clean up OldChangesListRecentChangesLine hooks some. Better if triggers before li tag additions. 2008-09-15 15:51:45 +00:00
Aaron Schulz
dade4d6d8e Remove type check for userIsNew(), shouldn't be needed 2008-09-06 21:52:18 +00:00
Aaron Schulz
72f7e047ac Fix typo for OldChangesList 2008-09-06 15:11:54 +00:00
Aaron Schulz
9b20471b66 * Mark non-autoconfirmed users in RC
* Avoid overselecting fields in RC and add $fields to SpecialRecentChangesQuery
* Some whitespace tweaks in RecentChange.php. Remove dead code.
* Avoid rc_new check in ChangesList
* Move some "unpatrolled" CSS to shared.css. Add 'newuser' CSS.
* Bump style version
2008-09-06 15:01:59 +00:00
David McCabe
f0c1991f6d Made ChangesList::insertUserRelatedLinks public for use by hooks. 2008-09-03 22:57:26 +00:00
David McCabe
aca3e5d864 Added OldChangesListRecentChangesLine hook for customizing RC messages in OldChangesList mode. TODO: Customize other ChangesList implementations. 2008-09-03 22:13:03 +00:00
Brion Vibber
b4b15e5207 Revert r39503, 39507 "(bug 14468) Lines in classic RecentChanges and Watchlist now have classes "odd" and "even" to make colouring using css possible."
These alternating background colors are imho not very attractive, and make the display busy and confusing, rather than easier to read.
2008-08-19 00:15:05 +00:00
Siebrand Mazeland
acc62d7361 (bug 14468) Lines in classic RecentChanges and Watchlist now have classes "odd" and "even" to make colouring using css possible. Implemented in OldChangesList::recentChangesLine using an additional parameter, while keeping behaviour for other uses unchanged. Did not see any use adding this to ChangesList::recentChangesLine 2008-08-16 21:16:25 +00:00
Raimond Spekking
d50452faa8 Use formatNum for another number 2008-08-12 13:19:28 +00:00
Raimond Spekking
e39d454b16 Make space after semicolon consistent with other punctuation marks
Fixes an inconsistency on Special:Whatlinkshere like "Image:Name.jpg (redirect page;image link) (← links)" too
2008-08-07 12:19:22 +00:00
Chad Horohoe
4df635a540 revert 36435. Bad logic slaps mw-redirect on pages that aren't even redirects. 2008-06-19 14:19:54 +00:00
Chad Horohoe
d2a23a17db Redirects in logs, rc, etc. should have mw-redirect applied. 2008-06-18 22:21:21 +00:00
Alexandre Emsenhuber
d57d2aef70 Allow entities, it breaks some languages such as french 2008-06-14 10:41:46 +00:00
Aaron Schulz
79bf4c24ed Rename 'hiderevision' to 'suppressrevision' 2008-05-25 00:31:28 +00:00
Aaron Schulz
2b2d94c4ca Don't show history link for logs 2008-04-25 03:22:46 +00:00
Aaron Schulz
27e2a6834a Add rcid for new unpatrolled pages 2008-04-21 03:20:08 +00:00
Brion Vibber
73bc7a083b Group all logs in ERC, not an arbitrary subset 2008-04-15 21:39:33 +00:00
Aaron Schulz
f85b5c8ccf Clean up log grouping 2008-04-15 03:55:16 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Aaron Schulz
1530a54a47 Actually, leave usePatrol() stub for b/c 2008-04-13 17:55:10 +00:00
Aaron Schulz
4180eea040 Bah, renamed these at the last minute 2008-04-13 17:46:00 +00:00
Aaron Schulz
7dbb373ef2 * Move useRCPatrol() to User
* Add useNPPatrol()
2008-04-13 17:37:41 +00:00
Aaron Schulz
196783093e Add $wgRCTypeGroupedLogs to group certain logs by type in changes lists 2008-04-12 03:23:02 +00:00
Alexandre Emsenhuber
763a619a21 Fix for ehanced recentchanges: when there are log items, show them groupped by log (same as old behaviour) and not by page. See for example recent changes at mediawiki.org, new user log items aren't anymore groupped and they take too much place. 2008-04-09 09:20:55 +00:00
Alexandre Emsenhuber
c8e4ddd178 Kill no more needed and also false comments 2008-04-04 16:12:19 +00:00
Niklas Laxström
f0b81881e2 * I assume this was forgotten 2008-04-04 16:02:10 +00:00
Aaron Schulz
1db9554156 private -> protected (since CleanChanges extends this) 2008-04-04 13:16:58 +00:00
Aaron Schulz
2fd517af43 * Don't show hist link if hidden
* Mark more functions
2008-04-04 05:08:25 +00:00
Aaron Schulz
7b07d67f39 Document and flag some functions 2008-04-04 04:44:22 +00:00
Aaron Schulz
4cc0115d86 * Add missing /event log action
* Various UI cleanup
2008-04-04 03:56:48 +00:00
Aaron Schulz
76bee0de6a Improve log handling for Enhanced RC 2008-04-01 22:41:19 +00:00
Aaron Schulz
2f090b8fdc * Don't show "hide patrolled edits" link for people that can't see the patrol markings
* Have this and ChangesList use the same usePatrol() check
2008-03-31 18:13:48 +00:00
Brion Vibber
35b83a08bb hackaround for table background hardcoded in monobook 2008-03-20 22:51:09 +00:00
Brion Vibber
a23cc9c0a1 Don't add spurious ')' in enhanced RC block line if we don't have a clean size change 2008-03-20 21:27:29 +00:00
Brion Vibber
345df67d0e Messed about in this horror myself a bit, think I got some issues worked out. :D
* Arrows align with the text again -- by keeping them within a text line, 'middle' alignment works
* Forced no-wrap whitespace to keep the line from breaking around the arrow or spacer image when the text line was long in Firefox
2008-03-20 18:58:38 +00:00
Aaron Schulz
6f21ad7535 Align arrows to top, but move down half a line, so it lines up 2008-03-20 17:59:38 +00:00
Brion Vibber
0324d0b082 Revert r32218 -- incredibly cryptic illegible class names 2008-03-20 17:16:21 +00:00
Raimond Spekking
b02e2e0df8 Add a few CSS classes to the tables 2008-03-20 11:20:13 +00:00
Aaron Schulz
8ddd4e8672 Image should be 'middle' aligned 2008-03-20 03:00:38 +00:00
Aaron Schulz
a8ebfa7f7a Remove lead space - not useful 2008-03-20 02:53:47 +00:00
Aaron Schulz
37f596f717 No need to <tt> these 2008-03-20 02:21:20 +00:00
Aaron Schulz
ec7d0ab2e9 Remove debug borders 2008-03-20 02:09:51 +00:00
Aaron Schulz
fc62cc17c5 Spacing cleanup 2008-03-20 02:08:35 +00:00
Aaron Schulz
63c0b33c77 *Border should explicitly be 0
*Spacing
2008-03-20 01:20:39 +00:00
Aaron Schulz
643d1de2a3 *End parenthesis lost in output somehow, add it back
*Remove hard-coded size attribute
2008-03-20 00:31:16 +00:00
Aaron Schulz
1ac6514e6d Cleanup some log item display for Enhanced RC (thanks to ialex for pointing out code oddness) 2008-03-18 18:58:03 +00:00
Aaron Schulz
e91295ab83 rev_deleted merge:
*Hide deleted content
*Support rc_log_type/rc_log_action/ect... params
*Use tables to avoid strange overflow
2008-03-16 18:46:09 +00:00
Raimond Spekking
c036644d48 * (bug 11810) Localize displayed semicolons
Based on a patch of Roozbeh Pournader. Optimized for caching and more arabic script languages added.
2007-12-06 09:42:04 +00:00
David McCabe
5549750977 The uncontroversial Liquid Threads hooks.
The hook SkinTemplateTabAction got left in from a previous attempted commit, but the documentation is added in this commit. The other new hooks here are ChangesListInsertArticleLink, MediaWikiPerformAction, and BeforeWatchlist.
2007-11-06 01:16:25 +00:00
Brion Vibber
6a3260fe26 Revert r26670 [LiquidThreads-related patches] for now:
* Adds five undocumented hooks
* Unclear purpose for change to SpecialPage
* Big search-and-replace in EditPage for title usage which seems to still leave things inconsistent; a bit confused what all that's mean to be doing.
2007-10-18 14:55:48 +00:00
David McCabe
c474b77da3 Merged in changes from Liquid Threads branch including extra hooks and minor changes to EditPage. (Liquid Threads itself is still an extension; this is just some things it needs.) 2007-10-12 23:12:24 +00:00
Brion Vibber
9be2c3676a Revert r26281 for the moment. Big patch, changes several existing practices. Will want some public testing and more review before taking it to trunk. 2007-10-01 19:50:25 +00:00
Aaron Schulz
4febfc77c2 *Clean up deletion of revisions and remove some gaps
*Allow blocking of users to hide names
*Implement revision deletion for images/deleted files/deleted revs
*Log deletion set off for now
*Add 'hidden' file dir
*Dissallow merging via undelete (which was inefficient and hard to reverse)
*Use restore points and diffs to special:undelete
*Add a special page to merge pages
*Get changeslist to use tables to avoid ugly formatting
*Add logs into RC for rebuildrecentchanges.php
*Add private logs
*List private logs at specialpages
*Tweak/add some deletion and merge messages
2007-10-01 19:38:28 +00:00
Aaron Schulz
073ee5dea8 *Allow for some non-patrollers to see which edits were patrolled 2007-09-04 00:38:54 +00:00
Rob Church
5683dd356d Add a class to <strong> for watched links in change lists 2007-08-22 05:21:59 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Antoine Musso
6acb8e11bf Fix PHP strict standards warning in enhanced recent changes. 2007-05-20 12:00:13 +00:00
Antoine Musso
5b5dd490e8 Fix #9973 : "Changed Size" still shows on enhanced recent changes for "collapsed" items 2007-05-20 11:51:46 +00:00
Nick Jenkins
113bb1c772 Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor)
pick up the appropriate tags, and documentation blobs for classes. This is 
the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted.
Please be advised that more related documentation tweaks may follow later - e.g. 
Doxygen generates a log file of warnings that is 574 Kb in size, when run over 
the just the trunk/phase3 code ... eek! Thankfully, much of that is just 
whining about functions without documentation   ;-)
2007-04-04 05:22:37 +00:00
Brion Vibber
3a6ac5a3c3 Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.
If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :)
2007-03-28 14:16:43 +00:00
Nick Jenkins
5fef2333d4 PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation tweaking stuff.
Minor doc tweaks to prevent some PHPDocumentor warnings or errors when run on the includes/ directory. PHPDocumentor uses a syntax very similar to javadoc - mostly we already use this, but there were a few scattered places that were adjusted to make them consistent with the rest of the code. In practical terms, these changes were made:
* @url becomes @link
* @fixme becomes @todo
* HTML tags in descriptions must be closed / balanced.
* @bug was removed (where the bug was long fixed), or changed into a @todo (in the few situations where the bug was still pending)
* @obsolete becomes @deprecated
* Things like "/**@{{" and "/**@}}*/" which cause "unknown tag" warnings were removed
* @access must be a valid access level.
* @desc tag not needed, removed.
* Doesn't seem to like @licence, will accept @license however.
* Use full comment block notation in a few places (i.e. open block with "/**", start each line with " *", and end block with " */")

Then additional to this, to get some class docs associated with their respective classes:
* Moved some docs to right above those classes (deleting blank lines, or moving descriptions from the file headers)
* Marked some classes without docs as "@todo document"
* (done up to "class MIMEsearchPage" on the "classtrees_MediaWiki.html" page for the includes/ directory)
2007-03-28 08:53:02 +00:00
Brion Vibber
9150412fe7 For now revert the rev_deleted branch merge; don't want trunk to get too far gone before changes are reviewed!
Reverted: 20511, 20510, 20507, 20474, 20461, 20460, 20457, 20448, 20446
2007-03-16 16:01:07 +00:00
Aaron Schulz
b783d2645e *Fix syntax bugs on line 669 2007-03-16 10:30:15 +00:00
Aaron Schulz
93a37f347e *Never show [deleted] link for log events 2007-03-16 09:20:18 +00:00
Aaron Schulz
e19ab815f7 *Re-add some things lost in merge 2007-03-14 18:35:23 +00:00
Aaron Schulz
2448539ad9 *Merge in phase3_rev_deleted/includes 2007-03-14 15:50:06 +00:00
Raimond Spekking
27112b1d02 * (bug 8539 Enable PLURAL option for another message of Recentchanges
* Patch by Niklas Laxström
2007-02-28 18:11:09 +00:00
Nick Jenkins
f88c771756 The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Antoine Musso
b144fcb85d Rename constructors to __constructor 2007-01-20 13:34:31 +00:00
Niklas Laxström
eb4be84871 * Unsupport html 2007-01-17 18:13:56 +00:00
Nick Jenkins
784e69d028 For the "includes/" directory:
* removing unused local vars
* removing used global declarations
* adding FIXMEs against extract() calls and lines that seem to be using uninitialized variables
* adding some array() declarations.
2007-01-12 10:03:51 +00:00
Leon Weber
72a5431b33 Slight improvement of enhanced recent changes lines. There were complaints about
seeing things like "(-9) Versionen" in German, which means "-9 revisions".
2007-01-09 15:29:38 +00:00
Brion Vibber
17dcfece5a Revert r18540; unilateral change to recentchanges formatting 2006-12-23 22:13:11 +00:00
Leon Weber
5793639aa7 * Moved the timestamps to the begin of each line in recentchanges. 2006-12-23 22:05:26 +00:00
Brion Vibber
0363a0cbbd XHTML fix in enhanced RC 2006-12-14 22:30:42 +00:00
Leon Weber
c62e068b27 * Made the show change size function work on page moves, page creations, and
log entries.
* Also fixed it in the javascript recentchanges.
* Moved the value behind the page title to ensure the columns are still lined up
* Merged both sql patches into one.
* Set the default for both columns to NULL to make it work on edits before the db
  update.
2006-12-13 20:08:02 +00:00
Leon Weber
7531338080 * DB schema change: added two columns (rc_old_len and rc_new_len) to the recentchanges table to store
the text lengths before and after the edit
* (bug 1085) Made Special:Recentchanges show the character difference between the changed revisions
2006-12-09 11:36:35 +00:00
Nick Jenkins
3ce85d933f Probable variable name typo, currently passing ref to NULL. 2006-11-29 12:06:58 +00:00
Nick Jenkins
ae8554c45b Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth. 2006-11-29 11:43:58 +00:00
Nick Jenkins
74ea267553 Prevent the following strict-standards warnings - i.e. when running with error_logging(E_ALL | E_STRICT); - which seems to disable the yucky "@" operator, as well as maxing out the pedantry of warnings. Nothing major found, just nice to be as explicit and as forward-compatible as possible.
* Strict Standards: Undefined index: switch in includes/Parser.php on line 3849
* Strict Standards: Undefined index: ref in includes/Parser.php on line 3818
* Strict Standards: Non-static method OutputPage::setEncodings() should not be called statically in index.php on line 11
* Strict Standards: Only variables should be assigned by reference in includes/Skin.php on line 888
* Strict Standards: Non-static method Title::newFromURL() should not be called statically in includes/SpecialContributions.php on line 178
* Strict Standards: Only variables should be assigned by reference in includes/GlobalFunctions.php on line 2054
* Strict Standards: Undefined index:  contributions-summary in languages/Language.php on line 764
* Strict Standards: Undefined index:  trackbackhtml in skins/MonoBook.php on line 86
* Strict Standards: Undefined index:  blockip in skins/MonoBook.php on line 204
* Strict Standards: Undefined index:  tagline in skins/MonoBook.php on line 261
* Strict Standards: Undefined index: uselang in includes/SkinTemplate.php on line 1159
* Strict Standards: Non-static method CoreParserFunctions::plural() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Undefined offset:  0 in includes/SkinTemplate.php on line 196
* Strict Standards: Undefined index:  USE INDEX in includes/Database.php on line 1015
* Strict Standards: Undefined index:  image_tests in includes/Parser.php on line 3488
* Strict Standards: Undefined offset:  0 in includes/Parser.php on line 3507
* Strict Standards: Non-static method ChangesList::newFromUser() should not be called statically in includes/SpecialWatchlist.php on line 361
* Strict Standards: Non-static method RecentChange::newFromCurRow() should not be called statically in includes/SpecialWatchlist.php on line 367
* Strict Standards: is_a(): Deprecated. Please use the instanceof operator in includes/Exception.php on line 168
* Strict Standards: Non-static method LogPage::logName() should not be called statically in includes/SpecialContributions.php on line 325
* Strict Standards: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in maintenance/commandLine.inc on line 191
* Strict Standards: Undefined index:  meatball in languages/Language.php on line 234
* Strict Standards: rmdir(/tmp/mwParser-2108164586-images/thumb): Directory not empty in maintenance/parserTests.inc on line 605
* Cleaning out some new temp files left over by parserTests (there were one or two straggler dirs/files that would persist after the test run ended, due to new tests being added over time)
* Strict Standards: Non-static method CoreParserFunctions::special() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Declaration of ListUsersPage::preprocessResults() should be compatible with that of QueryPage::preprocessResults() in includes/SpecialListusers.php on line 38
* Strict Standards: Only variables should be passed by reference in includes/SpecialBlockip.php on line 175
* Strict Standards: Skin::include_once(skins/Standard.deps.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in includes/Skin.php on line 121
* Strict Standards: Declaration of ApiMain::getResult() should be compatible with that of ApiBase::getResult() in includes/api/ApiMain.php on line 35
* Strict Standards: is_a(): Deprecated. Please use the instanceof operator in includes/WikiError.php on line 63
* Strict Standards: Non-static method WikiError::isError() should not be called statically in includes/SpecialImport.php on line 64
* Strict Standards: Non-static method ImportStreamSource::newFromInterwiki() should not be called statically in includes/SpecialImport.php on line 58<b
* Strict Standards: Only variables should be assigned by reference in includes/SpecialUndelete.php on line 501
* Strict Standards: Non-static method Image::newFromName() should not be called statically in thumb.php on line 56
* Strict Standards: Non-static method CoreParserFunctions::numberoffiles() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Non-static method CoreParserFunctions::statisticsFunction() should not be called statically in includes/CoreParserFunctions.php on line 139
* Strict Standards: Non-static method CoreParserFunctions::isRaw() should not be called statically in includes/CoreParserFunctions.php on line 128
* Strict Standards: Non-static method CoreParserFunctions::grammar() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Undefined offset:  1 in includes/SpecialMIMEsearch.php on line 130
* Strict Standards: Undefined index:  recentchangeslinked in skins/MonoBook.php on line 184
* Strict Standards: Declaration of DumpNotalkFilter::pass() should be compatible with that of DumpFilter::pass() in includes/Export.php on line 612
* Strict Standards: Declaration of DumpNamespaceFilter::pass() should be compatible with that of DumpFilter::pass() in includes/Export.php on line 665
* Strict Standards: Non-static method ImportStreamSource::newFromUpload() should not be called statically in includes/SpecialImport.php on line 46
* Strict Standards: Undefined offset:  5 in includes/Sanitizer.php on line 396
* Strict Standards: Undefined index:  wikidbUserName in includes/SpecialUserlogin.php on line 562
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryBase.php on line 95
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryBase.php on line 116
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryWatchlist.php on line 128
* Strict Standards: Undefined property:  stdClass::$rc_id in includes/api/ApiQueryBase.php on line 131
* Strict Standards: Undefined property:  stdClass::$rc_last_oldid in includes/api/ApiQueryBase.php on line 164
* Strict Standards: Undefined property:  stdClass::$rc_moved_to_ns in includes/api/ApiQueryBase.php on line 285
* Strict Standards: Undefined property:  stdClass::$rc_patrolled in includes/api/ApiQueryBase.php on line 176
* Strict Standards: Undefined index:  comment in includes/api/ApiFeedWatchlist.php on line 85
* Strict Standards: Undefined offset:  0 in includes/Skin.php on line 302
* Strict Standards: Non-static method User::SetupSession() should not be called statically in includes/SpecialUserlogin.php on line 15

... There are certain to be other things too, so this is not intended to be comprehensive, rather the above just stops most of the notifications I observed.
2006-11-29 05:45:03 +00:00
Tim Starling
36ed0cd96c Reverting 17479/17480, breaks subclassing of Linker methods by skins. See my comment on bug 7405. 2006-11-08 07:12:03 +00:00
Nick Jenkins
fa239349f2 * (bug 7405) Make Linker methods static. Patch by Dan Li. 2006-11-08 05:21:15 +00:00
Tim Starling
a3b490d2c4 * Made special page names case-insensitive and localisable. Care has been taken to maintain backwards compatibility.
* Used special page subpages in a few more places, instead of query parameters
2006-10-30 06:25:31 +00:00
Rotem Liss
a1bf699cfa (bug 7306) RTL text in an LTR wiki breaks appearance of Special:Recentchanges 2006-09-13 10:29:56 +00:00
Rob Church
e606580997 Revert for now so brion can sleep at night and so that I don't get kidnapped and shipped off to Jo'burg 2006-06-24 21:52:52 +00:00
Rob Church
7d86589f97 * (bug 5852) Localise "number of watching users" according to user locale 2006-06-24 21:43:34 +00:00
Rob Church
61f169c21b Introduce 'FetchChangesList' hook; see docs/hooks.txt for more information 2006-06-21 00:18:55 +00:00
Rotem Liss
75521b2562 Fixing the most annoying problem in Bug 5724: adding dir mark after the recent changes page name, to prevent confusion in BiDi languages 2006-06-19 19:32:53 +00:00
Brion Vibber
e9706ce2c1 * (bug 6324) Fix regression in enhanced RC alignment 2006-06-16 03:28:11 +00:00
Rob Church
139e02787f (bug 4054) Add "boteditletter" to recent changes flags 2006-06-15 07:29:00 +00:00
Domas Mituzas
b08f2b4100 AutoLoad RecentChange 2006-06-06 11:44:18 +00:00
Brion Vibber
0a26267688 Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :) 2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104 Use AutoLoader to load classes:
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Antoine Musso
7ebdb6de89 Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad) 2006-05-11 22:40:38 +00:00
Antoine Musso
3d4ea7c485 public / private / static stuff when loading Special:Recentchanges 2006-05-11 19:46:58 +00:00
Antoine Musso
473cd5cbcc unused variables as per #3692 2006-05-01 10:53:59 +00:00
Niklas Laxström
8f80c5db7e Do some html-escaping 2006-04-27 17:36:51 +00:00
Rob Church
fcd1cdeb93 * Remove deprecated $wgOnlySysopsCanPatrol references; use User::isAllowed( 'patrol' ) per bug 5282. Patch by Alan Harder. 2006-03-18 16:07:17 +00:00
Brion Vibber
103be1dda1 * Further work on rev_deleted; changed to a bitfield with several data-hiding
options. Not yet ready for production use; Special:Revisiondelete is
  incomplete, and the flags are not preserved across page deletion/undeletion.
  To try it; add the 'deleterevision' permission to a privileged group.
Also split some functions from GlobalFunctions to XmlFunctions.php, added
some convenience functions for building form controls, some more Linker
conveniences for formatting various types of standard link clusters.
2006-03-16 19:04:25 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00