Merge "Use RecentChange::getAttribute instead of property access"

This commit is contained in:
jenkins-bot 2019-01-11 20:01:09 +00:00 committed by Gerrit Code Review
commit d4275ab9ac

View file

@ -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;