From: Prateek Saxena Date: Mon, 23 Jul 2018 04:22:36 +0000 (+0530) Subject: LogEventsList: Use DerivativeContext X-Git-Tag: 1.34.0-rc.0~4675^2~1 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=f8a777b9035b351e90bb89edf5be300317a2ee83;p=lhc%2Fweb%2Fwiklou.git LogEventsList: Use DerivativeContext Bug: T200136 Change-Id: Ie2b7753684dc0257b0b53d9c9314feeb14d99182 --- 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' )