SemanticMediaWiki / SemanticSignup

Allows adding additional fields to the user registration form, which get placed on the new users' user page, as well as stored semantically.
https://www.mediawiki.org/wiki/Extension:SemanticSignup
Other
6 stars 3 forks source link

Avoid deprecated `SiteStatsUpdate` constructor, use `SiteStatsUpdate::factory()` instead #35

Open xSavitar opened 2 years ago

xSavitar commented 2 years ago

The code here: https://github.com/SemanticMediaWiki/SemanticSignup/blob/5d9d23c174ef7823de9e82fe66ca37ba0f47c4d6/src/SpecialSemanticSignup.php#L114 should be updated to something like:

$ssUpdate = SiteStatsUpdate::factory( [
    'edit' =>       0,
    'articles' => 0,
    'pages' =>   0,
    'users' =>    1,
] );

Per the Wikimedia Code Search tool, this is the only repo doing this: https://codesearch.wmcloud.org/search/?q=new%20SiteStatsUpdate&i=nope&files=&excludeFiles=&repos=