mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "build: Enable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName"
This commit is contained in:
commit
adbd05be82
|
@ -38,7 +38,7 @@ class VisualEditorHooks {
|
|||
}
|
||||
}
|
||||
|
||||
public static function VisualEditorApiFactory( $main, $name ) {
|
||||
public static function getVisualEditorApiFactory( $main, $name ) {
|
||||
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'visualeditor' );
|
||||
$class = $name === 'visualeditor' ? 'ApiVisualEditor' : 'ApiVisualEditorEdit';
|
||||
return new $class( $main, $name, $config );
|
||||
|
@ -447,7 +447,7 @@ class VisualEditorHooks {
|
|||
* @param RecentChange $rc
|
||||
* @return boolean true
|
||||
*/
|
||||
public static function onRecentChange_save( RecentChange $rc ) {
|
||||
public static function onRecentChangeSave( RecentChange $rc ) {
|
||||
$request = RequestContext::getMain()->getRequest();
|
||||
if ( $request->getBool( 'veswitched' ) && $rc->mAttribs['rc_this_oldid'] ) {
|
||||
$rc->addTags( 'visualeditor-switched' );
|
||||
|
|
|
@ -113,11 +113,11 @@
|
|||
"APIModules": {
|
||||
"visualeditor": {
|
||||
"class": "ApiVisualEditor",
|
||||
"factory": "VisualEditorHooks::VisualEditorApiFactory"
|
||||
"factory": "VisualEditorHooks::getVisualEditorApiFactory"
|
||||
},
|
||||
"visualeditoredit": {
|
||||
"class": "ApiVisualEditorEdit",
|
||||
"factory": "VisualEditorHooks::VisualEditorApiFactory"
|
||||
"factory": "VisualEditorHooks::getVisualEditorApiFactory"
|
||||
}
|
||||
},
|
||||
"MessagesDirs": {
|
||||
|
@ -174,7 +174,7 @@
|
|||
"VisualEditorHooks::onEditPageShowEditFormFields"
|
||||
],
|
||||
"RecentChange_save": [
|
||||
"VisualEditorHooks::onRecentChange_save"
|
||||
"VisualEditorHooks::onRecentChangeSave"
|
||||
],
|
||||
"BeforeInitialize": [
|
||||
"VisualEditorHooks::onBeforeInitialize"
|
||||
|
|
Loading…
Reference in a new issue