LogEventsList: Use DerivativeContext
authorPrateek Saxena <prtksxna@gmail.com>
Mon, 23 Jul 2018 04:22:36 +0000 (09:52 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Mon, 23 Jul 2018 04:22:36 +0000 (09:52 +0530)
Bug: T200136
Change-Id: Ie2b7753684dc0257b0b53d9c9314feeb14d99182

includes/logging/LogEventsList.php

index 73aaa4f..c9a7299 100644 (file)
@@ -170,7 +170,9 @@ class LogEventsList extends ContextSource {
                        $formDescriptor['subtype'] = $this->getActionSelectorDesc( $types, $action );
                }
 
-               $htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );
+               $context = new DerivativeContext( $this->getContext() );
+               $context->setTitle( $title ); // Remove subpage
+               $htmlForm = new HTMLForm( $formDescriptor, $context );
                $htmlForm
                        ->setSubmitText( $this->msg( 'logeventslist-submit' )->text() )
                        ->setMethod( 'get' )