diff --git a/modules/ve-mw/ui/contextitems/ve.ui.MWGalleryContextItem.js b/modules/ve-mw/ui/contextitems/ve.ui.MWGalleryContextItem.js index 4031e3e011..8ff572af50 100644 --- a/modules/ve-mw/ui/contextitems/ve.ui.MWGalleryContextItem.js +++ b/modules/ve-mw/ui/contextitems/ve.ui.MWGalleryContextItem.js @@ -44,7 +44,7 @@ ve.ui.MWGalleryContextItem.static.commandName = 'gallery'; * @inheritdoc */ ve.ui.MWGalleryContextItem.prototype.getDescription = function () { - return ve.msg( 'visualeditor-mwgallerycontext-description', this.model.children.length ); + return ve.msg( 'visualeditor-mwgallerycontext-description', this.model.getImageNodes().length ); }; /* Registration */