Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2864
diffEnginePatch.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:15 PM
2014-11-21 21:15:47 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
diffEnginePatch.diff
View Options
Index: phase3/includes/DifferenceEngine.php
===================================================================
--- phase3/includes/DifferenceEngine.php (Revision 14765)
+++ phase3/includes/DifferenceEngine.php (Arbeitskopie)
@@ -490,16 +490,23 @@
$this->mNewPage = $this->mTitle;
$newLink = $this->mNewPage->escapeLocalUrl();
$this->mPagetitle = htmlspecialchars( wfMsg( 'currentrev' ) );
+ // print a timestamp even for the current revision
+ $timestamp = $wgLang->timeanddate( $this->mNewRev->getTimestamp(), true );
$newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit' );
+
+ $this->mNewtitle = "<strong><a href='$newLink'>{$this->mPagetitle}</a> ($timestamp)</strong>"
+ . " (<a href='$newEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)";
+
} else {
$this->mNewPage = $this->mNewRev->getTitle();
$newLink = $this->mNewPage->escapeLocalUrl( 'oldid=' . $this->mNewid );
$newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit&oldid=' . $this->mNewid );
$t = $wgLang->timeanddate( $this->mNewRev->getTimestamp(), true );
$this->mPagetitle = htmlspecialchars( wfMsg( 'revisionasof', $t ) );
+
+ $this->mNewtitle = "<strong><a href='$newLink'>{$this->mPagetitle}</a></strong>"
+ . " (<a href='$newEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)";
}
- $this->mNewtitle = "<strong><a href='$newLink'>{$this->mPagetitle}</a></strong>"
- . " (<a href='$newEdit'>" . htmlspecialchars( wfMsg( 'editold' ) ) . "</a>)";
// Load the old revision object
$this->mOldRev = false;
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436
Default Alt Text
diffEnginePatch.diff (1 KB)
Attached To
Mode
T8304: Show timestamp for the current revision in diff. pages
Attached
Detach File
Event Timeline
Log In to Comment