mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Use RecentChange::getAttribute instead of property access
Change-Id: I9a4250db1fdf6a8a2a34e08701c39cce5852c23b
This commit is contained in:
parent
49a5fe0947
commit
e833cabc07
|
@ -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