On save, if there was no 'last modified' text at the bottom of the page, add it

Just hope that wgMaxCredits is 0.

Change-Id: Idf4a7cceb0650eaec4442244066d875a3ff38e06
This commit is contained in:
Alex Monk 2014-11-17 01:16:29 +00:00
parent ff3d76f488
commit ac6f6caeac

View file

@ -1539,6 +1539,14 @@ ve.init.mw.ViewPageTarget.prototype.replacePageContent = function (
var $content = $( $.parseHTML( html ) ), $editableContent;
if ( lastModified ) {
// If we were not viewing the most recent revision before (a requirement
// for lastmod to have been added by MediaWiki), we will be now.
if ( !$( '#footer-info-lastmod' ).length ) {
$( '#footer-info' ).prepend(
$( '<li>' ).attr( 'id', 'footer-info-lastmod' )
);
}
$( '#footer-info-lastmod' ).text( ' ' + mw.msg(
'lastmodifiedat',
lastModified.date,