Use RecentChange::getAttribute instead of property access

Change-Id: I9a4250db1fdf6a8a2a34e08701c39cce5852c23b
This commit is contained in:
Umherirrender 2019-01-11 20:35:48 +01:00
parent 49a5fe0947
commit e833cabc07

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;