Revert r23999 -- too-specific class names are annoying and unmaintainable.
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Jul 2007 14:50:03 +0000 (14:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Jul 2007 14:50:03 +0000 (14:50 +0000)
This is CSS -- use selectors for that!

includes/DifferenceEngine.php

index c66a083..d659ed5 100644 (file)
@@ -157,7 +157,7 @@ CONTROL;
                        $rollback = '';
                }
                if( $wgUseRCPatrol && $this->mRcidMarkPatrolled != 0 && $wgUser->isAllowed( 'patrol' ) ) {
-                       $patrol = '<span class="mw-diff-patrol"> [' . $sk->makeKnownLinkObj( $this->mTitle, wfMsg( 'markaspatrolleddiff' ), "action=markpatrolled&rcid={$this->mRcidMarkPatrolled}" ) . ']</span>';
+                       $patrol = ' [' . $sk->makeKnownLinkObj( $this->mTitle, wfMsg( 'markaspatrolleddiff' ), "action=markpatrolled&rcid={$this->mRcidMarkPatrolled}" ) . ']';
                } else {
                        $patrol = '';
                }
@@ -573,7 +573,7 @@ CONTROL;
                        $newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit' );
 
                        $this->mNewtitle = "<a href='$newLink'>{$this->mPagetitle}</a> ($timestamp)"
-                               . "<span class=\"mw-diff-edit\"> (<a href='$newEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)</span>";
+                               . " (<a href='$newEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)";
 
                } else {
                        $newLink = $this->mNewPage->escapeLocalUrl( 'oldid=' . $this->mNewid );
@@ -581,7 +581,7 @@ CONTROL;
                        $this->mPagetitle = htmlspecialchars( wfMsg( 'revisionasof', $timestamp ) );
 
                        $this->mNewtitle = "<a href='$newLink'>{$this->mPagetitle}</a>"
-                               . "<span class=\"mw-diff-edit\"> (<a href='$newEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)</span>";
+                               . " (<a href='$newEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)";
                }
 
                // Load the old revision object
@@ -611,10 +611,10 @@ CONTROL;
                        $oldLink = $this->mOldPage->escapeLocalUrl( 'oldid=' . $this->mOldid );
                        $oldEdit = $this->mOldPage->escapeLocalUrl( 'action=edit&oldid=' . $this->mOldid );
                        $this->mOldtitle = "<a href='$oldLink'>" . htmlspecialchars( wfMsg( 'revisionasof', $t ) )
-                               . "</a><span class=\"mw-diff-edit\"> (<a href='$oldEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)</span>";
+                               . "</a> (<a href='$oldEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)";
                        //now that we considered old rev, we can make undo link (bug 8133, multi-edit undo)
                        $newUndo = $this->mNewPage->escapeLocalUrl( 'action=edit&undoafter=' . $this->mOldid . '&undo=' . $this->mNewid);
-                       $this->mNewtitle .= "<span class=\"mw-diff-undo\"> (<a href='$newUndo'>" . htmlspecialchars( wfMsg( 'editundo' ) ) . "</a>)</span>";
+                       $this->mNewtitle .= " (<a href='$newUndo'>" . htmlspecialchars( wfMsg( 'editundo' ) ) . "</a>)";
                }
 
                return true;