mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Use RecentChange::getAttribute instead of property access"
This commit is contained in:
commit
d4275ab9ac
|
@ -528,7 +528,7 @@ class VisualEditorHooks {
|
|||
*/
|
||||
public static function onRecentChangeSave( RecentChange $rc ) {
|
||||
$request = RequestContext::getMain()->getRequest();
|
||||
if ( $request->getBool( 'veswitched' ) && $rc->mAttribs['rc_this_oldid'] ) {
|
||||
if ( $request->getBool( 'veswitched' ) && $rc->getAttribute( 'rc_this_oldid' ) ) {
|
||||
$rc->addTags( 'visualeditor-switched' );
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue