to vanish mysteriously from time to time for files that didn't have metadata.
* Added 'PageRenderingHash' hook for changing the parser cache hash key
from an extension that changes rendering based on nonstandard options.
+* Add 'deletedhistory' permission key for ability to view deleted history
+ list via Special:Undelete. Default is off, replicating the 1.5 behavior,
+ but it can be turned back on for random users to replicate the previous
+ 1.6 dev behavior.
=== Caveats ===
$wgGroupPermissions['sysop']['block'] = true;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgGroupPermissions['sysop']['delete'] = true;
+$wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
$wgGroupPermissions['sysop']['editinterface'] = true;
$wgGroupPermissions['sysop']['import'] = true;
$wgGroupPermissions['sysop']['importupload'] = true;
function getUndeleteLink() {
global $wgUser, $wgTitle, $wgContLang, $action;
- if( (($wgTitle->getArticleId() == 0) || ($action == "history")) &&
+ if( $wgUser->isAllowed( 'deletedhistory' ) &&
+ (($wgTitle->getArticleId() == 0) || ($action == "history")) &&
($n = $wgTitle->isDeleted() ) )
{
if ( $wgUser->isAllowed( 'delete' ) ) {
'Allmessages' => new SpecialPage( 'Allmessages' ),
'Log' => new SpecialPage( 'Log' ),
'Blockip' => new SpecialPage( 'Blockip', 'block' ),
- 'Undelete' => new SpecialPage( 'Undelete' ),
+ 'Undelete' => new SpecialPage( 'Undelete', 'deletedhistory' ),
"Import" => new SpecialPage( "Import", 'import' ),
'Lockdb' => new SpecialPage( 'Lockdb', 'siteadmin' ),
'Unlockdb' => new SpecialPage( 'Unlockdb', 'siteadmin' ),