dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update git submodules
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialPreferences.php
diff --git
a/includes/specials/SpecialPreferences.php
b/includes/specials/SpecialPreferences.php
index
8ad1630
..
a5c24e7
100644
(file)
--- a/
includes/specials/SpecialPreferences.php
+++ b/
includes/specials/SpecialPreferences.php
@@
-21,6
+21,8
@@
* @ingroup SpecialPage
*/
* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* A special page that allows users to change their preferences
*
/**
* A special page that allows users to change their preferences
*
@@
-82,7
+84,6
@@
class SpecialPreferences extends SpecialPage {
}
$htmlForm = $this->getFormObject( $user, $this->getContext() );
}
$htmlForm = $this->getFormObject( $user, $this->getContext() );
- $htmlForm->setSubmitCallback( [ 'Preferences', 'tryUISubmit' ] );
$sectionTitles = $htmlForm->getPreferenceSections();
$prefTabs = '';
$sectionTitles = $htmlForm->getPreferenceSections();
$prefTabs = '';
@@
-124,7
+125,9
@@
class SpecialPreferences extends SpecialPage {
* @return PreferencesForm|HTMLForm
*/
protected function getFormObject( $user, IContextSource $context ) {
* @return PreferencesForm|HTMLForm
*/
protected function getFormObject( $user, IContextSource $context ) {
- return Preferences::getFormObject( $user, $context );
+ $preferencesFactory = MediaWikiServices::getInstance()->getPreferencesFactory();
+ $form = $preferencesFactory->getForm( $user, $context );
+ return $form;
}
protected function showResetForm() {
}
protected function showResetForm() {