Commit graph

204 commits

Author SHA1 Message Date
Aryeh Gregor
7aa4a8f90c For HTML 5, drop type="" attributes for CSS/JS
This time done in a nice, centralized fashion, reducing LOC for callers
even if HTML 5 is disabled.  The implementation is a new Html class,
similar to Xml but intended to be HTML-specific from the beginning
instead of half-heartedly attempting to provide generic XML services but
actually with lots of HTML-specific stuff tacked on.

As part of the new Html class, a global config option $wgWellFormedXml
is added.  It's set to true by default, but if set to false, the Html
class will drop some things that HTML 5 doesn't require, like
self-closing " />" syntax and attribute quotation marks (sometimes).
2009-08-11 00:09:24 +00:00
Aryeh Gregor
df8eec9112 Make sure to parse RC legend label inline
Avoids unnecessary <p> tags.  Pointed out by Nikerabbit on CodeReview
for r54337.
2009-08-05 00:38:11 +00:00
Aryeh Gregor
258450346e Fix flag legend for watchlist from r54336 breakage
Mistake pointed out by Darth Kule on translatewiki.net, conveyed to me
by Nikerabbit.  I changed the semantics of a message but didn't update
all the callers.
2009-08-04 10:59:35 +00:00
Aryeh Gregor
34c814e791 Only show useful info in RC legend
This splits up the message recentchanges-label-legend so that pieces of
it can be provided only when they're relevant, and more can be added
later.  Any existing translations will need to be retranslated, but it's
only been a day, so creating a new message name seemed like overkill.

Follow-up to r54242.
2009-08-04 00:48:45 +00:00
Aryeh Gregor
2ea241d23f Add legend and tooltips to explain RC flags
Based on a patch submitted by svip on IRC.  I also changed the <span>
for unpatrolled into an <abbr>, and created a new message in case anyone
wants to localize !, for the sake of uniformity.
2009-08-02 22:15:55 +00:00
Andrew Garrett
854a37a73a LiquidThreads code quality, bug fixes and cleanup:
* Remove large swathes of dead code, hooks that have never existed, and dormant methods.
* Remove the TalkpageArchiveView, which has been inaccessible from the UI for ages.
* Break most miscellaneous hooks out into their own file, classes/Hooks.php
* Float the reply link on the RHS.
* Organise the hooks section of LiquidThreads.php somewhat.
* Remove deprecated =& syntax in some places.
* Move scratchTitle and related methods into Threads class instead of View class.
* Kill home-grown revision insertion code from leaveTrace, and rewrite it to use Article::doEdit
* Internal documentation, variable naming as appropriate.
* Remove special-case handling for links, unnecessary now.
* Fix customizeOldChangesList, it looks like it was never properly tested. Even if it had worked, it would have put (not by the author) on every edit to a post.
* Fail fast when trying to move a non-toplevel thread.
* Add rollback, extra links to the end of new-thread recentchanges entries.
2009-07-31 10:59:11 +00:00
Chad Horohoe
a2462d8fcd * (bug 16311) Make recent change flags acronyms instead of spans. Also move this crap to common, we don't need identical declarations in 5 different skins. 2009-07-29 22:15:52 +00:00
Raimond Spekking
135e87fb3e (bug 18161) Fix inconsistent separators in watchlist link toolbars with "enhanced recent changes" 2009-07-21 11:18:27 +00:00
Siebrand Mazeland
88d789e939 * replace some use of deprecated makeKnownLinkObj() by link() in core
* use array type parameter instead of string to escapeLocalUrl(), getFullURL() and getFullUrl() for readability
2009-06-06 22:42:48 +00:00
Aaron Schulz
6496378f85 (bug 18772) Removed redundant 'deletedrev' message instances 2009-05-26 12:29:16 +00:00
X!
ec70a23aa7 Modification of r50714, adding element to the li class, rather than a separate div class. 2009-05-26 11:03:50 +00:00
Niklas Laxström
d3b61fea7c Escaping fixes 2009-05-22 09:35:48 +00:00
X!
625b0affd5 Watchlist now has a specialized <div> tag that contains a unique class for each page 2009-05-18 01:12:52 +00:00
Aryeh Gregor
5512ee6ad4 Fix braindead wrong escaping from r49017, r49018
URL encoding != HTML encoding!

Thanks for report by Tbleher at:

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/49017#c2228
2009-04-19 17:07:41 +00:00
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