r40761 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40760‎ | r40761 | r40762 >
Date:22:00, 12 September 2008
Author:demon
Status:old
Tags:
Comment:
Add a unique identifier for read-only pages.
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1252,7 +1252,7 @@
12531253 // Wiki is read only
12541254 $this->setPageTitle( wfMsg( 'readonly' ) );
12551255 $reason = wfReadOnlyReason();
1256 - $this->addWikiMsg( 'readonlytext', $reason );
 1256+ $wgOut->wrapWikiMsg( '<div class="readonly-error">$1</div>', 'readonlytext' );
12571257 }
12581258
12591259 // Show source, if supplied

Status & tagging log