http://www.mediawiki.org/wiki/Special:Code/MediaWiki/58302

Revision: 58302
Author:   aaron
Date:     2009-10-29 05:58:53 +0000 (Thu, 29 Oct 2009)

Log Message:
-----------
Use revDeleteLink() to remove duplication

Modified Paths:
--------------
    trunk/phase3/includes/ImagePage.php

Modified: trunk/phase3/includes/ImagePage.php
===================================================================
--- trunk/phase3/includes/ImagePage.php 2009-10-29 05:40:37 UTC (rev 58301)
+++ trunk/phase3/includes/ImagePage.php 2009-10-29 05:58:53 UTC (rev 58302)
@@ -870,22 +870,14 @@
                                        $del = wfMsgHtml( 'rev-delundel' );
                                } else {
                                        list( $ts, $name ) = explode( '!', 
$img, 2 );
-                                       $del = $this->skin->link(
-                                               SpecialPage::getTitleFor( 
'Revisiondelete' ),
-                                               wfMsgHtml( 'rev-delundel' ),
-                                               array(),
-                                               array( 
-                                                       'type' => 'oldimage',
-                                                       'target' => 
$wgTitle->getPrefixedText(), 
-                                                       'ids' => $ts,
-                                               ),
-                                               array( 'known' )
+                                       $query = array(
+                                               'type' => 'oldimage',
+                                               'target' => 
$wgTitle->getPrefixedText(), 
+                                               'ids' => $ts,
                                        );
-                                       // Bolden oversighted content
-                                       if( 
$file->isDeleted(File::DELETED_RESTRICTED) )
-                                               $del = "<strong>$del</strong>";
+                                       $del = $this->skin->revDeleteLink( 
$query, $file->isDeleted(File::DELETED_RESTRICTED) );
                                }
-                               $row .= "<span 
class='mw-revdelundel-link'>$del</span>";
+                               $row .= $del;
                        }
                        $row .= '</td>';
                }



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to