Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -90,8 +90,8 @@ |
91 | 91 | return; |
92 | 92 | } |
93 | 93 | |
94 | | - // Show the form |
95 | | - $this->showForm(); |
| 94 | + $this->showForm(); |
| 95 | + $this->showLogEntries(); |
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
— | — | @@ -115,6 +115,25 @@ |
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
| 119 | + * Show deletion log fragments pertaining to the current file |
| 120 | + */ |
| 121 | + private function showLogEntries() { |
| 122 | + global $wgOut; |
| 123 | + $wgOut->addHtml( '<h2>' . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" ); |
| 124 | + $reader = new LogViewer( |
| 125 | + new LogReader( |
| 126 | + new FauxRequest( |
| 127 | + array( |
| 128 | + 'type' => 'delete', |
| 129 | + 'page' => $this->title->getPrefixedText(), |
| 130 | + ) |
| 131 | + ) |
| 132 | + ) |
| 133 | + ); |
| 134 | + $reader->showList( $wgOut ); |
| 135 | + } |
| 136 | + |
| 137 | + /** |
119 | 138 | * Prepare a message referring to the file being deleted, |
120 | 139 | * showing an appropriate message depending upon whether |
121 | 140 | * it's a current file or an old version |