r57148 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57147‎ | r57148 | r57149 >
Date:19:50, 30 September 2009
Author:aaron
Status:resolved (Comments)
Tags:
Comment:
* Renamed deletedcontent to deletedtext
* Removed deletedrevision and used deletedhistory/deletedtext instead
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/includes/ChangesList.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/FileDeleteForm.php (modified) (history)
  • /trunk/phase3/includes/HistoryPage.php (modified) (history)
  • /trunk/phase3/includes/ImagePage.php (modified) (history)
  • /trunk/phase3/includes/LogEventsList.php (modified) (history)
  • /trunk/phase3/includes/Revision.php (modified) (history)
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)
  • /trunk/phase3/includes/User.php (modified) (history)
  • /trunk/phase3/includes/diff/DifferenceInterface.php (modified) (history)
  • /trunk/phase3/includes/filerepo/ArchivedFile.php (modified) (history)
  • /trunk/phase3/includes/filerepo/OldLocalFile.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialDeletedContributions.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialRevisiondelete.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -142,8 +142,7 @@
143143 'createtalk',
144144 'delete',
145145 'deletedhistory',
146 - 'deletedcontent',
147 - 'deletedrevision',
 146+ 'deletedtext',
148147 'deleterevision',
149148 'edit',
150149 'editinterface',
Index: trunk/phase3/includes/diff/DifferenceInterface.php
@@ -318,7 +318,7 @@
319319 }
320320
321321 $rdel = ''; $ldel = '';
322 - if( $wgUser->isAllowed( 'deletedrevision' ) ) {
 322+ if( $wgUser->isAllowed( 'deletedhistory' ) ) {
323323 // Don't show useless link to people who cannot hide revisions
324324 if( $this->mOldRev->getVisibility() || $wgUser->isAllowed( 'deleterevision' ) ) {
325325 if( !$this->mOldRev->userCan( Revision::DELETED_RESTRICTED ) ) {
Index: trunk/phase3/includes/Article.php
@@ -3430,7 +3430,7 @@
34313431
34323432 $cdel='';
34333433 // Don't show useless link to people who cannot hide revisions
3434 - if( $wgUser->isAllowed('deleterevision') || ($revision->getVisibility() && $wgUser->isAllowed('deletedrevision')) ) {
 3434+ if( $wgUser->isAllowed('deleterevision') || ($revision->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
34353435 if( !$revision->userCan( Revision::DELETED_RESTRICTED ) ) {
34363436 // If revision was hidden from sysops
34373437 $cdel = wfMsgHtml( 'rev-delundel' );
Index: trunk/phase3/includes/ImagePage.php
@@ -821,7 +821,7 @@
822822 . $navLinks . "\n"
823823 . Xml::openElement( 'table', array( 'class' => 'wikitable filehistory' ) ) . "\n"
824824 . '<tr><td></td>'
825 - . ( $this->current->isLocal() && ($wgUser->isAllowed('delete') || $wgUser->isAllowed('deletedrevision') ) ? '<td></td>' : '' )
 825+ . ( $this->current->isLocal() && ($wgUser->isAllowed('delete') || $wgUser->isAllowed('deletedhistory') ) ? '<td></td>' : '' )
826826 . '<th>' . wfMsgHtml( 'filehist-datetime' ) . '</th>'
827827 . ( $this->showThumb ? '<th>' . wfMsgHtml( 'filehist-thumb' ) . '</th>' : '' )
828828 . '<th>' . wfMsgHtml( 'filehist-dimensions' ) . '</th>'
@@ -847,7 +847,7 @@
848848 $row = $css = $selected = '';
849849
850850 // Deletion link
851 - if( $local && ($wgUser->isAllowed('delete') || $wgUser->isAllowed('deletedrevision') ) ) {
 851+ if( $local && ($wgUser->isAllowed('delete') || $wgUser->isAllowed('deletedhistory') ) ) {
852852 $row .= '<td>';
853853 # Link to remove from history
854854 if( $wgUser->isAllowed( 'delete' ) ) {
@@ -861,7 +861,7 @@
862862 );
863863 }
864864 # Link to hide content. Don't show useless link to people who cannot hide revisions.
865 - if( $wgUser->isAllowed('deleterevision') || ($wgUser->isAllowed('deletedrevision') && $file->getVisibility()) ) {
 865+ if( $wgUser->isAllowed('deleterevision') || ($wgUser->isAllowed('deletedhistory') && $file->getVisibility()) ) {
866866 if( $wgUser->isAllowed('delete') ) {
867867 $row .= '<br/>';
868868 }
Index: trunk/phase3/includes/filerepo/OldLocalFile.php
@@ -195,11 +195,11 @@
196196 * @return bool
197197 */
198198 function userCan( $field ) {
199 - if( isset($this->deleted) && ($this->deleted & $field) == $field ) {
 199+ if( isset($this->deleted) && ($this->deleted & $field) ) {
200200 global $wgUser;
201 - $permission = ( $this->deleted & File::DELETED_RESTRICTED ) == File::DELETED_RESTRICTED
 201+ $permission = ( $this->deleted & File::DELETED_RESTRICTED )
202202 ? 'suppressrevision'
203 - : 'deletedrevision';
 203+ : ( $field & File::DELETED_FILE ) ? 'deletedtext' : 'deletedhistory';
204204 wfDebug( "Checking for $permission due to $field match on $this->mDeleted\n" );
205205 return $wgUser->isAllowed( $permission );
206206 } else {
Index: trunk/phase3/includes/filerepo/ArchivedFile.php
@@ -377,11 +377,11 @@
378378 */
379379 public function userCan( $field ) {
380380 $this->load();
381 - if( ($this->deleted & $field) == $field ) {
 381+ if( $this->deleted & $field ) {
382382 global $wgUser;
383 - $permission = ( $this->deleted & File::DELETED_RESTRICTED ) == File::DELETED_RESTRICTED
 383+ $permission = ( $this->deleted & File::DELETED_RESTRICTED )
384384 ? 'suppressrevision'
385 - : 'deletedrevision';
 385+ : ( $field & File::DELETED_FILE ) ? 'deletedtext' : 'deletedhistory';
386386 wfDebug( "Checking for $permission due to $field match on $this->deleted\n" );
387387 return $wgUser->isAllowed( $permission );
388388 } else {
Index: trunk/phase3/includes/HistoryPage.php
@@ -351,7 +351,7 @@
352352 $s .= Xml::hidden( 'title', $this->title->getPrefixedDbKey() ) . "\n";
353353
354354 $this->buttons = '<div>';
355 - if( $wgUser->isAllowed('deletedrevision') ) {
 355+ if( $wgUser->isAllowed('deletedhistory') ) {
356356 $this->buttons .= Xml::element( 'button',
357357 array(
358358 'type' => 'submit',
@@ -464,7 +464,7 @@
465465
466466 $s = "($curlink) ($lastlink) $diffButtons";
467467
468 - if( $wgUser->isAllowed( 'deletedrevision' ) ) {
 468+ if( $wgUser->isAllowed( 'deletedhistory' ) ) {
469469 // Don't show useless link to people who cannot hide revisions
470470 if( !$rev->getVisibility() && !$wgUser->isAllowed( 'deleterevision' ) ) {
471471 $del = Xml::check( 'deleterevisions', false, array('class' => 'mw-revdelundel-hidden') );
Index: trunk/phase3/includes/LogEventsList.php
@@ -284,7 +284,7 @@
285285 $paramArray = LogPage::extractParams( $row->log_params );
286286 $revert = $del = '';
287287 // Some user can hide log items and have review links
288 - if( !($this->flags & self::NO_ACTION_LINK) && $wgUser->isAllowed( 'deletedrevision' ) ) {
 288+ if( !($this->flags & self::NO_ACTION_LINK) && $wgUser->isAllowed( 'deletedhistory' ) ) {
289289 // Don't show useless link to people who cannot hide revisions
290290 if( $row->log_deleted || $wgUser->isAllowed( 'deleterevision' ) ) {
291291 $del = $this->getShowHideLinks( $row ) . ' ';
@@ -381,7 +381,7 @@
382382 array( 'known', 'noclasses' )
383383 ) . ')';
384384 // If an edit was hidden from a page give a review link to the history
385 - } else if( self::typeAction($row,array('delete','suppress'),'revision','deletedrevision') ) {
 385+ } else if( self::typeAction($row,array('delete','suppress'),'revision','deletedhistory') ) {
386386 if( count($paramArray) >= 2 ) {
387387 // Different revision types use different URL params...
388388 $key = $paramArray[0];
@@ -434,7 +434,7 @@
435435 $revert = wfMsg( 'parentheses', $wgLang->pipeList( $revert ) );
436436 }
437437 // Hidden log items, give review link
438 - } else if( self::typeAction($row,array('delete','suppress'),'event','deletedrevision') ) {
 438+ } else if( self::typeAction($row,array('delete','suppress'),'event','deletedhistory') ) {
439439 if( count($paramArray) >= 1 ) {
440440 $revdel = SpecialPage::getTitleFor( 'Revisiondelete' );
441441 // $paramArray[1] is a CSV of the IDs
@@ -547,11 +547,11 @@
548548 * @return Boolean
549549 */
550550 public static function userCan( $row, $field ) {
551 - if( ( $row->log_deleted & $field ) == $field ) {
 551+ if( $row->log_deleted & $field ) {
552552 global $wgUser;
553 - $permission = ( $row->log_deleted & LogPage::DELETED_RESTRICTED ) == LogPage::DELETED_RESTRICTED
 553+ $permission = ( $row->log_deleted & LogPage::DELETED_RESTRICTED )
554554 ? 'suppressrevision'
555 - : 'deletedrevision';
 555+ : 'deletedhistory';
556556 wfDebug( "Checking for $permission due to $field match on $row->log_deleted\n" );
557557 return $wgUser->isAllowed( $permission );
558558 } else {
@@ -807,7 +807,7 @@
808808 global $wgUser;
809809 $this->mConds['log_user'] = $userid;
810810 // Paranoia: avoid brute force searches (bug 17342)
811 - if( !$wgUser->isAllowed( 'deletedrevision' ) ) {
 811+ if( !$wgUser->isAllowed( 'deletedhistory' ) ) {
812812 $this->mConds[] = $this->mDb->bitAnd('log_deleted', LogPage::DELETED_USER) . ' = 0';
813813 } else if( !$wgUser->isAllowed( 'suppressrevision' ) ) {
814814 $this->mConds[] = $this->mDb->bitAnd('log_deleted', LogPage::SUPPRESSED_USER) .
@@ -854,7 +854,7 @@
855855 $this->mConds['log_title'] = $title->getDBkey();
856856 }
857857 // Paranoia: avoid brute force searches (bug 17342)
858 - if( !$wgUser->isAllowed( 'deletedrevision' ) ) {
 858+ if( !$wgUser->isAllowed( 'deletedhistory' ) ) {
859859 $this->mConds[] = $this->mDb->bitAnd('log_deleted', LogPage::DELETED_ACTION) . ' = 0';
860860 } else if( !$wgUser->isAllowed( 'suppressrevision' ) ) {
861861 $this->mConds[] = $this->mDb->bitAnd('log_deleted', LogPage::SUPPRESSED_ACTION) .
Index: trunk/phase3/includes/Revision.php
@@ -977,11 +977,11 @@
978978 * @return bool
979979 */
980980 public function userCan( $field ) {
981 - if( ( $this->mDeleted & $field ) == $field ) {
 981+ if( $this->mDeleted & $field ) {
982982 global $wgUser;
983 - $permission = ( $this->mDeleted & self::DELETED_RESTRICTED ) == self::DELETED_RESTRICTED
 983+ $permission = ( $this->mDeleted & self::DELETED_RESTRICTED )
984984 ? 'suppressrevision'
985 - : 'deletedrevision';
 985+ : ( $field & self::DELETED_TEXT ) ? 'deletedtext' : 'deletedhistory';
986986 wfDebug( "Checking for $permission due to $field match on $this->mDeleted\n" );
987987 return $wgUser->isAllowed( $permission );
988988 } else {
Index: trunk/phase3/includes/ChangesList.php
@@ -446,11 +446,11 @@
447447 * @return bool
448448 */
449449 public static function userCan( $rc, $field ) {
450 - if( ( $rc->mAttribs['rc_deleted'] & $field ) == $field ) {
 450+ if( $rc->mAttribs['rc_deleted'] & $field ) {
451451 global $wgUser;
452 - $permission = ( $rc->mAttribs['rc_deleted'] & Revision::DELETED_RESTRICTED ) == Revision::DELETED_RESTRICTED
 452+ $permission = ( $rc->mAttribs['rc_deleted'] & Revision::DELETED_RESTRICTED )
453453 ? 'suppressrevision'
454 - : 'deletedrevision';
 454+ : ( $field & Revision::DELETED_TEXT ) ? 'deletedtext' : 'deletedhistory';
455455 wfDebug( "Checking for $permission due to $field match on {$rc->mAttribs['rc_deleted']}\n" );
456456 return $wgUser->isAllowed( $permission );
457457 } else {
Index: trunk/phase3/includes/FileDeleteForm.php
@@ -97,7 +97,7 @@
9898 if( $status->ok ) {
9999 // Need to do a log item
100100 $log = new LogPage( 'delete' );
101 - $logComment = wfMsgForContent( 'deletedrevision', $oldimage );
 101+ $logComment = wfMsgForContent( 'deletedhistory', $oldimage );
102102 if( trim( $reason ) != '' )
103103 $logComment .= ": {$reason}";
104104 $log->addEntry( 'delete', $title, $logComment );
Index: trunk/phase3/includes/SkinTemplate.php
@@ -800,7 +800,7 @@
801801 }
802802 } else {
803803 //article doesn't exist or is deleted
804 - if( $wgUser->isAllowed( 'deletedhistory' ) && $wgUser->isAllowed( 'deletedcontent' ) ) {
 804+ if( $wgUser->isAllowed( 'deletedhistory' ) && $wgUser->isAllowed( 'deletedtext' ) ) {
805805 if( $n = $this->mTitle->isDeleted() ) {
806806 $undelTitle = SpecialPage::getTitleFor( 'Undelete' );
807807 $content_actions['undelete'] = array(
Index: trunk/phase3/includes/DefaultSettings.php
@@ -1354,8 +1354,7 @@
13551355 $wgGroupPermissions['sysop']['delete'] = true;
13561356 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
13571357 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1358 -$wgGroupPermissions['sysop']['deletedcontent'] = true; // can view deleted revision text
1359 -$wgGroupPermissions['sysop']['deletedrevision'] = true; // can view hidden revision items (user/comment/text)
 1358+$wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text
13601359 $wgGroupPermissions['sysop']['undelete'] = true;
13611360 $wgGroupPermissions['sysop']['editinterface'] = true;
13621361 $wgGroupPermissions['sysop']['editusercss'] = true;
Index: trunk/phase3/includes/specials/SpecialUndelete.php
@@ -576,10 +576,10 @@
577577 if( $par != "" ) {
578578 $this->mTarget = $par;
579579 }
580 - if ( $wgUser->isAllowed( 'deletedcontent' ) && $wgUser->isAllowed( 'undelete' ) && !$wgUser->isBlocked() ) {
 580+ if ( $wgUser->isAllowed( 'deletedtext' ) && $wgUser->isAllowed( 'undelete' ) && !$wgUser->isBlocked() ) {
581581 $this->mAllowed = true; // user can restore
582582 $this->mCanView = true; // user can view content
583 - } elseif ( $wgUser->isAllowed( 'deletedcontent' ) ) {
 583+ } elseif ( $wgUser->isAllowed( 'deletedtext' ) ) {
584584 $this->mAllowed = false; // user cannot restore
585585 $this->mCanView = true; // user can view content
586586 } else { // user can only view the list of revisions
@@ -639,9 +639,17 @@
640640 }
641641 if( $this->mFile !== null ) {
642642 $file = new ArchivedFile( $this->mTargetObj, '', $this->mFile );
 643+ $file->load();
643644 // Check if user is allowed to see this file
644 - if( !$file->userCan( File::DELETED_FILE ) ) {
645 - $wgOut->permissionRequired( 'suppressrevision' );
 645+ if ( !$file->exists() ) {
 646+ $wgOut->addWikiMsg( 'filedelete-nofile', $this->mFile );
 647+ return;
 648+ } else if( !$file->userCan( File::DELETED_FILE ) ) {
 649+ if( $file->isDeleted( File::DELETED_RESTRICTED ) ) {
 650+ $wgOut->permissionRequired( 'suppressrevision' );
 651+ } else {
 652+ $wgOut->permissionRequired( 'deletedtext' );
 653+ }
646654 return false;
647655 } elseif ( !$wgUser->matchEditToken( $this->mToken, $this->mFile ) ) {
648656 $this->showFileConfirmationForm( $this->mFile );
@@ -779,7 +787,7 @@
780788
781789 $revdlink = '';
782790 // Diffs already have revision delete links
783 - if( !$this->mDiff && $wgUser->isAllowed( 'deletedrevision' ) ) {
 791+ if( !$this->mDiff && $wgUser->isAllowed( 'deletedhistory' ) ) {
784792 // Don't show useless link to people who cannot hide revisions
785793 if( !$rev->getVisibility() && !$wgUser->isAllowed( 'deleterevision' ) ) {
786794 $revdlink = '';
@@ -893,7 +901,7 @@
894902 $targetQuery = array( 'oldid' => $rev->getId() );
895903 }
896904 // Add show/hide link if available. Don't show useless link to people who cannot hide revisions.
897 - if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedrevision')) ) {
 905+ if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
898906 // If revision was hidden from sysops
899907 if( !$rev->userCan( Revision::DELETED_RESTRICTED ) ) {
900908 $del = ' ' . Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ),
@@ -1194,7 +1202,7 @@
11951203 // Edit summary
11961204 $comment = $sk->revComment( $rev );
11971205 // Show/hide link. // Don't show useless link to people who cannot hide revisions.
1198 - if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedrevision')) ) {
 1206+ if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
11991207 if( !$rev->userCan( Revision::DELETED_RESTRICTED ) ) {
12001208 // If revision was hidden from sysops
12011209 $revdlink = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ),
@@ -1241,7 +1249,7 @@
12421250 $comment = $this->getFileComment( $file, $sk );
12431251 $revdlink = '';
12441252 // Add show/hide link if available. Don't show useless link to people who cannot hide revisions.
1245 - if( $wgUser->isAllowed('deleterevision') || ($file->getVisibility() && $wgUser->isAllowed('deletedrevision')) ) {
 1253+ if( $wgUser->isAllowed('deleterevision') || ($file->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
12461254 if( !$file->userCan(File::DELETED_RESTRICTED ) ) {
12471255 // If revision was hidden from sysops
12481256 $revdlink = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.wfMsgHtml('rev-delundel').')' );
Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php
@@ -90,13 +90,13 @@
9191 );
9292
9393 public function __construct() {
94 - parent::__construct( 'Revisiondelete', 'deletedrevision' );
 94+ parent::__construct( 'Revisiondelete', 'deletedhistory' );
9595 }
9696
9797 public function execute( $par ) {
9898 global $wgOut, $wgUser, $wgRequest;
99 - if( !$wgUser->isAllowed( 'deletedrevision' ) ) {
100 - $wgOut->permissionRequired( 'deletedrevision' );
 99+ if( !$wgUser->isAllowed( 'deletedhistory' ) ) {
 100+ $wgOut->permissionRequired( 'deletedhistory' );
101101 return;
102102 } else if( wfReadOnly() ) {
103103 $wgOut->readOnlyPage();
@@ -261,7 +261,11 @@
262262 return;
263263 }
264264 if( !$oimage->userCan(File::DELETED_FILE) ) {
265 - $wgOut->permissionRequired( 'suppressrevision' );
 265+ if( $oimage->isDeleted( File::DELETED_RESTRICTED ) ) {
 266+ $wgOut->permissionRequired( 'suppressrevision' );
 267+ } else {
 268+ $wgOut->permissionRequired( 'deletedtext' );
 269+ }
266270 return;
267271 }
268272 if ( !$wgUser->matchEditToken( $this->token, $archiveName ) ) {
Index: trunk/phase3/includes/specials/SpecialContributions.php
@@ -461,7 +461,7 @@
462462
463463 $conds = array_merge( $userCond, $this->getNamespaceCond() );
464464 // Paranoia: avoid brute force searches (bug 17342)
465 - if( !$wgUser->isAllowed( 'deletedrevision' ) ) {
 465+ if( !$wgUser->isAllowed( 'deletedhistory' ) ) {
466466 $conds[] = $this->mDb->bitAnd('rev_deleted',Revision::DELETED_USER) . ' = 0';
467467 } else if( !$wgUser->isAllowed( 'suppressrevision' ) ) {
468468 $conds[] = $this->mDb->bitAnd('rev_deleted',Revision::SUPPRESSED_USER) .
@@ -633,7 +633,7 @@
634634 }
635635
636636 // Don't show useless link to people who cannot hide revisions
637 - if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedrevision')) ) {
 637+ if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
638638 // If revision was hidden from sysops
639639 if( !$rev->userCan( Revision::DELETED_RESTRICTED ) ) {
640640 $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ),
Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php
@@ -31,7 +31,7 @@
3232 list( $index, $userCond ) = $this->getUserCond();
3333 $conds = array_merge( $userCond, $this->getNamespaceCond() );
3434 // Paranoia: avoid brute force searches (bug 17792)
35 - if( !$wgUser->isAllowed( 'deletedrevision' ) ) {
 35+ if( !$wgUser->isAllowed( 'deletedhistory' ) ) {
3636 $conds[] = $this->mDb->bitAnd('ar_deleted',Revision::DELETED_USER) . ' = 0';
3737 } else if( !$wgUser->isAllowed( 'suppressrevision' ) ) {
3838 $conds[] = $this->mDb->bitAnd('ar_deleted',Revision::SUPPRESSED_USER) .
@@ -146,7 +146,7 @@
147147 $this->messages['undeleteviewlink']
148148 );
149149
150 - if( $wgUser->isAllowed('deletedcontent') ) {
 150+ if( $wgUser->isAllowed('deletedtext') ) {
151151 $last = $sk->linkKnown(
152152 $undelete,
153153 $this->messages['diff'],
@@ -191,7 +191,7 @@
192192 }
193193
194194 // Don't show useless link to people who cannot hide revisions
195 - if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedrevision')) ) {
 195+ if( $wgUser->isAllowed('deleterevision') || ($rev->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
196196 // If revision was hidden from sysops
197197 if( !$rev->userCan( Revision::DELETED_RESTRICTED ) ) {
198198 $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ),

Follow-up revisions

RevisionCommit summaryAuthorDate
r57152Follow up r57148: tedious crapaaron20:34, 30 September 2009
r58429Partly revert r57148. The search&replace was a bit too wide. It catches a mes...raymond17:12, 2 November 2009
r59920Removed $file->load() call from r57148: already called internally as neededaaron00:20, 10 December 2009

Comments

#Comment by Siebrand (talk | contribs)   20:31, 30 September 2009

Forgot to rename right-deletedcontent message to right-deletedtext, delete the deleted right- message from MessagesEn.php and update messages.inc.

#Comment by Aaron Schulz (talk | contribs)   20:35, 30 September 2009

There was no right-deletedrevision in messages though.

#Comment by Tim Starling (talk | contribs)   23:46, 9 December 2009

Please do not mark your own changes as "resolved".

+			$file->load();

What is this for? It looks wrong.

Status & tagging log