* (bug 6488) Show relevant log fragment in Special:Movepage
authorRob Church <robchurch@users.mediawiki.org>
Fri, 30 Jun 2006 08:27:46 +0000 (08:27 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 30 Jun 2006 08:27:46 +0000 (08:27 +0000)
RELEASE-NOTES
includes/SpecialMovepage.php

index 6a87c7f..bfd11a8 100644 (file)
@@ -604,7 +604,7 @@ Some default configuration options have changed:
 * Added formatnum magic word
 * Added Javanese localization (jv)
 * (bug 6491) Apply bad image list in category galleries
-
+* (bug 6488) Show relevant log fragment in Special:Movepage
 
 == Compatibility ==
 
index 2c0720d..3939712 100644 (file)
@@ -172,6 +172,8 @@ class MovePageForm {
        <input type='hidden' name='wpEditToken' value=\"{$token}\" />
 </form>\n" );
 
+       $this->showLogFragment( $ot, $wgOut );
+
        }
 
        function doSubmit() {
@@ -269,5 +271,13 @@ class MovePageForm {
                        }
                }
        }
+       
+       function showLogFragment( $title, &$out ) {
+               $out->addHtml( wfElement( 'h2', NULL, LogPage::logName( 'move' ) ) );
+               $request = new FauxRequest( array( 'page' => $title->getPrefixedText(), 'type' => 'move' ) );
+               $viewer = new LogViewer( new LogReader( $request ) );
+               $viewer->showList( $out );
+       }
+       
 }
 ?>