'section' => 'editing/preview',
'label-message' => 'tog-uselivepreview',
];
-
}
/**
$context = $form->getContext();
// Set session data for the success message
- $context->getRequest()->setSessionData( 'specialPreferencesSaveSuccess', 1 );
+ $context->getRequest()->getSession()->set( 'specialPreferencesSaveSuccess', 1 );
$context->getOutput()->redirect( $url );
}
* Get extra parameters for the query string when redirecting after
* successful save.
*
- * @return array()
+ * @return array
*/
public function getExtraSuccessRedirectParameters() {
return [];
* @return string
*/
function getButtons() {
-
$attrs = [ 'id' => 'mw-prefs-restoreprefs' ];
if ( !$this->getModifiedUser()->isAllowedAny( 'editmyprivateinfo', 'editmyoptions' ) ) {