From f8a777b9035b351e90bb89edf5be300317a2ee83 Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Mon, 23 Jul 2018 09:52:36 +0530 Subject: [PATCH] LogEventsList: Use DerivativeContext Bug: T200136 Change-Id: Ie2b7753684dc0257b0b53d9c9314feeb14d99182 --- includes/logging/LogEventsList.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index 73aaa4feaf..c9a7299862 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -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' ) -- 2.20.1